Let's say I have an object represented by a series of nested maps:

{:a {:b 1} :c {:d 2}}

and now I'm going to be making a whole slew of edits to the submaps.

To do this efficiently, I need to make all the levels of the map
transients, because any update to the inner map also updates the outer map:

(transient {:a (transient {:b 1}), :c (transient {:d 2})})

and then at the end I need to do a nested persistent! operation.

However, there aren't good facilities for dealing with nested transients,
for example, there's no assoc!-in.  So it's a real pain to work with.

Has anyone dealt with this already, and developed a suite of tools for
working with nested transients, or other techniques for making batch
updates efficient for deeply nested objects?

-- 
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.

Reply via email to