clojure.core.reducers/Cat

typesince v0.0-1236 clojure.core.reducers/CatEdit
satisfies CollFold cljs.core/ICounted cljs.core/IReduce cljs.core/ISeqable

(Cat. cnt left right)

Source code @ clojurescript:src/main/cljs/clojure/core/reducers.cljs
(deftype Cat [cnt left right]
  cljs.core/ICounted
  (-count [_] cnt)

  cljs.core/ISeqable
  (-seq [_] (concat (seq left) (seq right)))

  cljs.core/IReduce
  (-reduce [this f1] (-reduce this f1 (f1)))
  (-reduce
    [_  f1 init]
    (-reduce
     right f1
     (-reduce left f1 init)))

  CollFold
  (coll-fold
    [this n combinef reducef]
    (-reduce this reducef)))