On Sun, Jan 25, 2009 at 9:46 AM, Jan Rychter <j...@rychter.com> wrote: > > From what I understand, currently the only way is to get the root > node and then recreate the entire zipper structure. This seems > unnecessary.
I think what you're asking for sounds very reasonable. It's also seems like it would have been obvious when creating the zipper API, so I wonder if it was really an oversight, or actually a design decision. Anyway, to "recreate the entire zipper structure" is not a particularly heavy operation. It simply creates a vector of 2 items (first is your tree, second is nil) and attaches some metadata to that. So it's constant time and not very heavy. --Chouser --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---