function | since v0.0-1236 | clojure.core.reducers/mapcat | Edit |
(mapcat f)
(mapcat f coll)
Applies f to every value in the reduction of coll, concatenating the result colls of (f val). Foldable.
(defcurried mapcat
{}
[f coll]
(folder coll
(fn [f1]
(rfn [f1 k]
([ret k v]
(reduce f1 ret (f k v)))))))