Posted by Rick on the 11th of October, 2008 at 1:31 pm under Programming and ublog.    This post has Comments.

Trying to figure out if there is anything in the canonical definition of streams (lazy lists) that says that you need to keep the initial elements of the stream after use (if, for example, you’re recursing down the list and the head elements are getting garbage collected). Can streams be used as iterators when traversed recursively?