Provides reducers support for State Transducers
Provides reducers support for State Transducers
(each f)
(each f coll)
Applies f to each item in coll, returns nil
Applies f to each item in coll, returns nil
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close