you can do some pretty powerful things using update-in and merge-with, especially if combined with protocols or multimethods that determine behavior. Can you give a more specific example of what you're trying to do? deep-merge and deep-merge-with are also useful here. There are a lot of nearly identical implementations originally taken from clojure.contrib.map-utils. https://github.com/puppetlabs/clj-kitchensink/blob/cfea4a16e4d2e15a2d391131a163b4eeb60d872e/src/puppetlabs/kitchensink/core.clj#L311-L332
Another approach to look at would be https://github.com/clojure/clojurescript/blob/master/src/cljs/clojure/zip.cljs (or the faster https://github.com/akhudek/fast-zip/blob/master/src/cljs/fast_zip/core.cljs), and maybe porting some of the functionality of https://github.com/xsc/rewrite-clj to cljs. Perhaps a combination of the two for first finding said arbitrary point in your tree and then returning an edited version. On Friday, October 10, 2014 2:28:26 PM UTC-4, Dustin Getz wrote: > > I have an arbitrarily nested EDN value stored in an atom in ClojureScript. > > What is the best way to make edits to an arbitrary subtree of this value? > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.