I tried using the zipper data structure and immediately noticed, that there is a function I need, which isn't there.
I would like to have something like root-loc (with a better name), that would do exactly what root does, except it would return a tree location, not just the root node. Or perhaps root should return a location, and root-node should return the node? The reason for this is simple: I walk and "modify" my tree in a number of ways, and then I want to zip things up to the root and pass the entire tree to another function. From what I understand, currently the only way is to get the root node and then recreate the entire zipper structure. This seems unnecessary. Am I missing something, or is that a worthwile addition? --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 -~----------~----~----~----~------~----~------~--~---