Skip to main content

update-in

functionv1.7

cljs.core/update-in

Available in:BBCLJCLJS
(update-in [m [k & ks] f] [m [k & ks] f a] [m [k & ks] f a b] [m [k & ks] f a b c] [m [k & ks] f a b c & args])
'Updates' a value in a nested associative structure, where ks is a sequence of keys and f is a function that will take the old value and any supplied args and return the new value, and returns a new nested structure. If any levels do not exist, hash-maps will be created.

No examples yet. Be the first to add one!