ICollection

protocolsince v0.0-927Edit
implemented for ArrayNodeSeq BlackNode ChunkedCons ChunkedSeq Cons Cycle EmptyList IndexedSeq IntegerRange Iterate KeySeq LazySeq List MapEntry NodeSeq ObjMap PersistentArrayMap PersistentArrayMapSeq PersistentHashMap PersistentHashSet PersistentQueue PersistentQueueSeq PersistentTreeMap PersistentTreeMapSeq PersistentTreeSet PersistentVector RSeq Range RedNode Repeat Subvec ValSeq

Source docstring:
Protocol for adding to a collection.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(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)"))