#353
Deep key-per
 

Difficulty:Easy
Topics:Nested map


Mission: Bikin function untuk update nilai dalam map yang bersarang. Fungsi harus dapat mengakses map bersarang dan mengupdate nilai berdasarkan kunci yang diberikan.
test not run
(= (__ {:user {:profile {:name "Clojure"}}} [:user :profile :name] "Clojurer") {:user {:profile {:name "Clojurer"}}})
test not run
(= (__ {:a {:b {:c 1}}} [:a :b :c] 2) {:a {:b {:c 2}}})
test not run
(= (__ {:info {:age 30 :name "Alice"}} [:info :age] 31) {:info {:age 31 :name "Alice"}})


Code which fills in the blank: