function | since v0.0-2341 | clojure.core/cat | Edit |
(cat rf)
A transducer which concatenates the contents of each input, which must be a collection, into the reduction.
(defn cat
{:added "1.7"}
[rf]
(let [rf1 (preserving-reduced rf)]
(fn
([] (rf))
([result] (rf result))
([result input]
(reduce rf1 result input)))))