You're viewing version 1.2.0 of chunk-cons. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

chunk-cons

clojure.core

  • (chunk-cons chunk rest)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:584 top

(defn chunk-cons [chunk rest]
  (if (clojure.lang.Numbers/isZero (clojure.lang.RT/count chunk))
    rest
    (clojure.lang.ChunkedCons. chunk rest)))
Vars in clojure.core/chunk-cons: chunk defn rest
Used in 5 other vars concat map filter range keep

Comments top

No comments for chunk-cons. Log in to add a comment.