Request: Can clojure.contrib.walk provide a reduce type operation?

2009-03-11 Thread Jeffrey Straszheim
Currently the clojure.contrib.walk code provides a nice way to perform a depth first map operation on trees. However, I need to fold across a tree. It would be nice if walk provided this. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Request: Can clojure.contrib.walk provide a reduce type operation?

2009-03-11 Thread Kevin Downey
if your walk pushes the items into a Queue, you can just reduce across the Queue On Wed, Mar 11, 2009 at 9:24 AM, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: Currently the clojure.contrib.walk code provides a nice way to perform a depth first map operation on trees.  However, I need

Re: Request: Can clojure.contrib.walk provide a reduce type operation?

2009-03-11 Thread Jeffrey Straszheim
Yeah, I figured something like that out, but it was non-obvious. It might be nice helper function sometime down the road. On Wed, Mar 11, 2009 at 3:49 PM, Kevin Downey redc...@gmail.com wrote: if your walk pushes the items into a Queue, you can just reduce across the Queue On Wed, Mar 11,

Re: Request: Can clojure.contrib.walk provide a reduce type operation?

2009-03-11 Thread Stuart Sierra
On Mar 11, 12:24 pm, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: Currently the clojure.contrib.walk code provides a nice way to perform a depth first map operation on trees. However, I need to fold across a tree. It would be nice if walk provided this. Hi Jeffrey, I agree it would