On Wed, Oct 27, 2010 at 10:18 AM, rb <ruzsa.bal...@gmail.com> wrote:
> P.s. I still don't understand though why the 'calls' argument to the
> store-calls function is not a held reference to the head of the lazy
> seq...
I think (and someone please correct me if I'm wrong) that the head of
'calls' isn't being retained because you recur on (rest calls),
replacing your hold on the head with the next item downstream.  Now
nobody's holding on to the head, so it gets GC'd.  Keep recurring, and
you just move down the sequence, always dropping what you were holding
onto, thus allowing it all to be GC'd.

Chris

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