Kiwwito

Code Snippets and More

Set/Update/Add Items

(assoc-in {:a {:b {:c 1 :d 2}}} [:a :b :c] 3)
;=> {:a {:b {:c 3 :d 2}}}

Remove Items

(update-in {:a {:b {:c 1 :d 2}}} [:a :b] dissoc :c)
;=> {:a {:b {:d 2}}}

Recent comments

© 2014 Copyright by Keyvan Akbary