clojure.core.reducers
-
Positional factory function for class clojure.core.reducers.Cat.
function([cnt left right])
A
.adds x to acc and returns acc
function([acc x])
C
- value
A high-performance combining fn that yields the catenation of the reduced values. The result is reducible, foldable, s...
function([] [ctor] [left right])
- protocol-method
([coll n combinef reducef])
D
Elides the first n values from the reduction of coll.
function([n] [n coll])
F
Retains values in the reduction of coll for which (pred val) returns logical true. Foldable.
function([pred] [pred coll])
- function
([f])
Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat ...
function([] [coll])
Reduces a collection using a (potentially parallel) reduce-combine strategy. The collection is partitioned into groups...
function([reducef coll] [combinef reducef coll] [n combinef reducef coll])
Equivalent to (fold cat append! coll)
function([coll])
Given a foldable collection, and a transformation function xf, returns a foldable collection, where any supplied reduc...
function([coll xf])
M
Applies f to every value in the reduction of coll. Foldable.
function([f] [f coll])
Applies f to every value in the reduction of coll, concatenating the result colls of (f val). Foldable.
function([f] [f coll])
Builds a combining fn out of the supplied operator and identity constructor. op must be associative and ctor called wi...
function([op ctor])
P
- value
R
Like core/reduce except: When init is not provided, (f) is used. Maps are reduced with reduce-kv
function([f coll] [f init coll])
Given a reducible collection, and a transformation function xf, returns a reducible collection, where any supplied red...
function([coll xf])
Removes values in the reduction of coll for which (pred val) returns logical true. Foldable.
function([pred] [pred coll])
T
Ends the reduction of coll after consuming n values.
function([n] [n coll])
Ends the reduction of coll when (pred val) returns logical false.
function([pred] [pred coll])