On Tue, Mar 15, 2011 at 11:12 PM, Shantanu Kumar <kumar.shant...@gmail.com>wrote:
> Use the node's metadata to annotate :visited as true and re-associate, > and do it recursively (likely with loop recur)? > > Regards, > Shantanu > > Altering metadata is generally a non-destructive operation (with-meta), and alter-meta! only works on refs/agents/etc. So I don't see how you could use metadata in this manner. You'd effectively be creating new nodes as you traverse the tree, and then the "pointers" between the nodes would get totally screwed up. Can you elaborate on your idea? -- 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