On Sat, 2013-01-05 at 08:07 -0800, Christian Sperandio wrote: > (reset! (:parent child) parent)
I'll decompose this so you can see where the overflow actually happens: user> (def reset-result (reset! (:parent child) parent)) #'user/reset-result user> reset-result StackOverflowError java.util.regex.Pattern$Curly.match0 (Pattern.java:3777) You can't print your result (the parent) because it's a circle. Printing things with circles safely takes more code than you've written. But rather than bothering with that, I *strongly* recommend looking into the services of the `clojure.zip' module, included with the standard distribution, to avoid mutable constructs and still be able to walk up and down your tree. -- Stephen Compall ^aCollection allSatisfy: [:each|aCondition]: less is better -- 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