ClojureDocs

导航

命名空间

assoc!

clojure.core

自 1.1 版起可用 (源代码)
  • (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.