Skip to main content

assoc

functionv1.7

cljs.core/assoc

Available in:BBCLJCLJS
(assoc [coll k v] [coll k v & kvs])
assoc[iate]. When applied to a map, returns a new map of the same (hashed/sorted) type, that contains the mapping of key(s) to val(s). When applied to a vector, returns a new vector that contains val at index. Note - index must be <= (count vector).

No examples yet. Be the first to add one!