ClojureDocs

Nav

Namespaces

assoc!

clojure.core

Available since 1.1 (source)
  • (assoc! coll key val)
  • (assoc! coll key val & kvs)
When applied to a transient map, adds mapping of key(s) to
val(s). When applied to a transient vector, sets the val at index.
Note - index must be <= (count vector). Returns coll.