1 to 10 of 31 results. prev page | next page
f should be a function of 2 arguments. If val is not supplied, returns the result of applying f to the first 2 items in coll, then applying f to that result and the 3rd item, etc. If coll contains no items, f must accept no arguments as well, and reduce returns the result of calling f with n...
Wraps x in a way such that a reduce will terminate with the value x
f should be a function of 2 arguments. Returns a channel containing the single result of applying f to init and the first item from the channel, then applying f to that result and the 2nd item, etc. If the channel closes without yielding items, returns init and f is not called. ch must close...
Like core/reduce except: When init is not provided, (f) is used. Maps are reduced with reduce-kv
Given a reducible collection, and a transformation function xf, returns a reducible collection, where any supplied reducing fn will be transformed by xf. xf is a function of reducing fn to reducing fn.
Returns a lazy sequence consisting of the result of applying f to 0 and the first item of coll, followed by applying f to 1 and the second item in coll, etc, until coll is exhausted. Thus function f should accept 2 arguments, index and item. Returns a stateful transducer when no collection i...
Works like reduce but takes a java.util.stream.BaseStream as its source. Honors 'reduced', is a terminal operation on the stream
Returns true if x is the result of a call to reduced
If x is already reduced?, returns it, else returns (reduced x)
Return true if x is a map entry