Chouser <chou...@gmail.com> writes: > 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.
What do I do to make it happen? I'm not a contributor, so I don't want to even suggest actual code, but it's pretty simple, obviously. > 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. That was why I asked. I wasn't sure if I was missing something obvious. > 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. Well, in an application, to recreate the structure, one needs to call zip/zipper and pass appropriate parameters. In my case this means I need to create three anonymous functions on the fly and it begins to feel kind of heavy. --J. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---