| protocol | since v0.0-927 | Edit |
ArrayNodeSeq BlackNode ChunkedCons ChunkedSeq Cons Cycle EmptyList HashMapLite IndexedSeq IntegerRange Iterate KeySeq LazySeq List MapEntry NodeSeq ObjMap PersistentArrayMap PersistentArrayMapSeq PersistentHashMap PersistentHashSet PersistentQueue PersistentQueueSeq PersistentTreeMap PersistentTreeMapSeq PersistentTreeSet PersistentVector RSeq Range RedNode Repeat SetLite Subvec ValSeq VectorLiteProtocol for adding to a collection.
(defprotocol ICollection
(^clj -conj [coll o]
"Returns a new collection of coll with o added to it. The new item
should be added to the most efficient place, e.g.
(conj [1 2 3 4] 5) => [1 2 3 4 5]
(conj '(2 3 4 5) 1) => '(1 2 3 4 5)"))