Class | Stream::CollectionStream |
In: |
lib/stream.rb
|
Parent: | BasicStream |
A CollectionStream can be used as an external iterator for each interger-indexed collection. The state of the iterator is stored in instance variable @pos.
A CollectionStream for an array is created by the method Array#create_stream.
pos | [R] |