Skip to content

clojure.core/update-in

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 11 Runnable: 10
([m ks f & 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.

Examples

by gstamp on
by gregg-williams on
by shuaybi on
by jamesqiu on
by pmbauer on
by edipofederle on
by gnperdue on
by ertugrulcetin on
by G1enY0ung on
by jcburley on . May have evaluation errors.
by statcompute on

See also


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