> Maybe you could use a parent map. > You have a normal tree, and then you have a map where > you can get the parent for a given node. I don't know if this > will be too slow for your problem - it's just an idea.
I haven't thought about it, thank you. I'm going to try different options and decide later. One disadvantage of your approach I see is that you need to store 2 vars: one for the tree root, and another for parent map. On the other hand, this style may be easier to treat in a direct functional style then recursive one. -- 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