clojure.core/cons¶
Returns a new seq where x is the first element and seq is the rest.
Examples¶
Note by belun¶
useful for creating lazy sequences, because it does not need to realize the param "seq" (it just appends the whole thing to param "x"
http://stackoverflow.com/questions/12389303/clojure-cons-vs-conj-with-lazy-seq
See also¶
- clojure.core/conj (9)
- clojure.core/seq (5)
Content from the matching ClojureDocs page, with authors credited on each contribution.