protocol | since v0.0-927 | clojure.lang/Associative | Edit |
BlackNode
MapEntry
ObjMap
PersistentArrayMap
PersistentHashMap
PersistentTreeMap
PersistentVector
RedNode
Subvec
Protocol for adding associativity to collections.
(defprotocol IAssociative
(^boolean -contains-key? [coll k]
"Returns true if k is a key in coll.")
#_(-entry-at [coll k])
(^clj -assoc [coll k v]
"Returns a new collection of coll with a mapping from key k to
value v added to it."))