Liking cljdoc? Tell your friends :D

transduce.reducers

Provides reducers support for State Transducers

Provides reducers support for State Transducers
raw docstring

eachclj/s

(each f)
(each f coll)

Applies f to each item in coll, returns nil

Applies f to each item in coll, returns nil
raw docstring

map-stateclj/s

(map-state f init)
(map-state f init coll)

Like map, but threads a state through the sequence of transformations. For each x in coll, f is applied to [state x] and should return [state' x']. The first invocation of f uses init as the state.

Like map, but threads a state through the sequence of transformations.
For each x in coll, f is applied to [state x] and should return [state' x'].
The first invocation of f uses init as the state.
raw docstring

mapcat-stateclj/s

(mapcat-state f init)
(mapcat-state f init coll)

Like mapcat, but threads a state through the sequence of transformations. For each x in coll, f is applied to [state x] and should return [state' xs]. The result is the concatenation of each returned xs.

Like mapcat, but threads a state through the sequence of transformations.
For each x in coll, f is applied to [state x] and should return [state' xs].
The result is the concatenation of each returned xs.
raw docstring

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

× close