1.2.0 permalink Arrow_down_16x16
  • (assoc coll & key-val-pairs)
Returns a new collection in which the values corresponding to the
given keys are updated by the given values. Each type of collection
can have specific restrictions on the possible keys.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/generic/collection.clj:26 top

(defmulti assoc
  "Returns a new collection in which the values corresponding to the
   given keys are updated by the given values. Each type of collection
   can have specific restrictions on the possible keys."
   {:arglists '([coll & key-val-pairs])}
   (fn [coll & items] (type coll)))
Vars in clojure.contrib.generic.collection/assoc: assoc defmulti fn type
Used in 0 other vars

Comments top

No comments for assoc. Log in to add a comment.