Public Vars

Back

update (clj)

(source)

function

(update m k f) (update m k f x) (update m k f x y) (update m k f x y z) (update m k f x y z & more)
'Updates' a value in an associative structure, where k is a key and f is a function that will take the old value and any supplied args and return the new value, and returns a new structure. If the key does not exist, nil is passed as the old value.

Examples