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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |