recursion in clojure.walk

2014-01-09 Thread Lee Spector
Perhaps this is well known to others, but on the chance that maybe it isn't I thought I'd share. In clojure.walk both prewalk and postwalk use recursion in ways that will blow the stack for sufficiently deep nested structures. We had been using them happily until recently when things got too

Re: recursion in clojure.walk

2014-01-09 Thread Stuart Sierra
I wrote clojure.walk, but I don't usually recommend it for anything but casual use. clojure.walk very general, so it's not going to be the most efficient approach. When you know more details about the data structure you're working with, as in this case, you can make something that will be

Re: recursion in clojure.walk

2014-01-09 Thread Lee Spector
On Jan 9, 2014, at 6:33 PM, Stuart Sierra wrote: I wrote clojure.walk, but I don't usually recommend it for anything but casual use. clojure.walk very general, so it's not going to be the most efficient approach. When you know more details about the data structure you're working with,