Skip to main content

clojure.core.reducers

A

  • append!

    .adds x to acc and returns acc

C

  • cat

    A high-performance combining fn that yields the catenation of the reduced values. The result is reducible, foldable, seq...

D

  • drop

    Elides the first n values from the reduction of coll.

F

  • filter

    Retains values in the reduction of coll for which (pred val) returns logical true. Foldable.

  • flatten

    Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat ...

  • fold

    Reduces a collection using a (potentially parallel) reduce-combine strategy. The collection is partitioned into groups o...

  • foldcat

    Equivalent to (fold cat append! coll)

  • folder

    Given a foldable collection, and a transformation function xf, returns a foldable collection, where any supplied reducin...

M

  • map

    Applies f to every value in the reduction of coll. Foldable.

  • mapcat

    Applies f to every value in the reduction of coll, concatenating the result colls of (f val). Foldable.

  • monoid

    Builds a combining fn out of the supplied operator and identity constructor. op must be associative and ctor called with...

R

  • reduce

    Like core/reduce except: When init is not provided, (f) is used. Maps are reduced with reduce-kv

  • reducer

    Given a reducible collection, and a transformation function xf, returns a reducible collection, where any supplied reduc...

  • remove

    Removes values in the reduction of coll for which (pred val) returns logical true. Foldable.

T

  • take

    Ends the reduction of coll after consuming n values.

  • take-while

    Ends the reduction of coll when (pred val) returns logical false.