It really boils down to understanding garbage collection: memory that cannot be
reached anymore is freed. In the first code sample, when running (last r), the
compiler has detected that r is never used afterwards, so it clears the local
variable. This means that while last is walking through
Hi I recently started to dig into lazy sequences processing in clojure
because I need to process huge amount of data that doesn't fit in memory.
I found a few articles and examples describing the way lazy seqs work in
clojure. But so far all I got myself is a paranoia.
Now everywhere I look in