Skip to content

clojure.core/assoc!

View this page on ClojureDocs

Type: function Added: Clojure 1.1 Examples: 2 Runnable: 2
([coll key val] [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.

Examples

by yasuto on
by dalzony on

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.