clojure.core/conj¶
conj[oin]. Returns a new collection with the xs 'added'. (conj nil item) returns (item). (conj coll) returns coll. (conj) returns []. The 'addition' may happen at different 'places' depending on the concrete type.
Examples¶
Note by me7¶
list prepend vector append
See also¶
- clojure.core/cons (4)
- clojure.core/into (9)
- clojure.core/peek (3)
- clojure.core/pop (2)
- clojure.core/concat (7)
- clojure.core/conj! (2)
- clojure.core/assoc (8)
- clojure.core/disj (2)
Content from the matching ClojureDocs page, with authors credited on each contribution.