assoc
associates pairs with a mapped sequence
Usage:
(assoc seq pair) (assoc* seq pair+)
Returns a newly mapped sequence wherein the specified key/value pairs are associated. If a key already exists, the value replaces the one previously stored; otherwise the pair is added to the sequence.
An Example
(define robert {:name "Bob" :age 45})
(assoc robert (:age . 46))
This example returns a copy of robert wherein the value associated with :age has been replaced by the number 46. The original sequence is unaffected.