Re: Lazy Lists + Mutable Arrays + Garbage Collection

2005-04-24 Thread Brad Bowman
> With cons based lists, past stream values are no longer referred to > so can be reclaimed, but we have random access arrays. > > That's about where my wondering stopped. It started again. @primesquares.shift would do it Brad

Lazy Lists + Mutable Arrays + Garbage Collection

2005-04-24 Thread Brad Bowman
Hi, I've been wondering how to lazy lists will work. The answer "Correctly, don't worry about it", is entirely acceptable... The intent of this example in S06 seems clear, make @oddsquares a lazily filled array of squares of odd @nums: S06/Pipe operators It [==>] binds the (potentially lazy