A couple of useful transducers
A couple of useful transducers
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close