On Jan 15, 1:44 pm, Nicolas Buduroi <nbudu...@gmail.com> wrote:
> On Jan 15, 3:25 pm, Sean Devlin <francoisdev...@gmail.com> wrote:
>
> > Did you try wrapping everything w/ a call to lazy-seq?
>
> Yes, it doesn't seem change anything.

I suspect that just wrapping everything in a call to lazy-seq cannot
work
in this case. In the implementation of walk, the branch for handling
seqs
contains a 'doall', which I think will realize the entire sub-sequence
at that point
(while holding the head of the sub-sequence in memory too),
defeating your attempts to make it lazy by "wrapping" the recursion.

Just my suspicion...I'm still trying to get a grasp on lazy sequences
myself.
    cheers,
    -tom

-- 
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

Reply via email to