Liking cljdoc? Tell your friends :D

spootnik.transducers

A couple of useful transducers

A couple of useful transducers
raw docstring

distinct-byclj/s

(distinct-by ident-fn)
(distinct-by ident-fn coll)

Returns a lazy sequence of distinct elements of coll. Element identity is determined by ident-fn Returns a stateful transducer when no collection is provided.

Returns a lazy sequence of distinct elements of coll. Element
identity is determined by `ident-fn`
Returns a stateful transducer when no collection is provided.
sourceraw docstring

reductions-withclj/s

(reductions-with f init)
(reductions-with f init coll)

Returns a lazy seq of the intermediate values of the reduction (as per reduce) of coll by f, starting with init. Returns a stateful transducer when no collection is provided.

Returns a lazy seq of the intermediate values of the reduction (as
per reduce) of coll by f, starting with init.  Returns a stateful
transducer when no collection is provided.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close