|
|
|
|
|
by simongray
1661 days ago
|
|
I agree that you want specialised mini-DSLs for querying and updating highly nested structures (... which you should probably avoid creating anyway), but for such a simple task you could just do this (Clojure example): (update-vals customers #(update-in % [:address 0] str/capitalize))
|
|
https://immerjs.github.io/immer/