by sanderjd · 11y ago · 0 comments
(def g {:x "a" :y {:k 71}})
user=> (assoc-in g [:y :k] 72)
{:y {:k 72}, :x "a"}
With this you can walk and mod deeply nested datastructures with ease (and others can reason about it well).
What natrius says is completely right on this point (which explains why those functions don't exist commonly outside of lisp) but it should by now make you wonder: if that's true, why haven't they?