A ContinuationIterator iterates through a container using continuations. This will generally perform better on larger data structures. The data structure must have an each() iterator (or an equivalent, if the ContinuationIterator is initialized with a different symbol).
class ContinuationIterator < Object
Create a new ContinuationIterator. Once created, elem() will return the first element. Advancing the iterator will move elem() to the next element.
|container||the container to be iterated.|
|method||the iterator method to use.|
Advance an iterator to the next element. Returns nil if there are no more elements.
Returns: the next element.
Return the current element
Determine if we have reached the end