classThe primary lazy stream class. It should take an existing stream as a parameter to['a]lazyStream :'a Stream.t ->object..end
new when the class is instantiated.
This class can present a stream interface itself via the to_stream call.
Accesses to the stream represented by this class will read -- but not consume -- data
from the stream passed in. Once the data is ready to be consumed, you may call
consumeall. This will consume all parent data read since the object was
instantiated or reset.
method next_item : 'a optionmethod nth_item : int -> 'a optionmethod consume_stream : unitmethod to_stream : 'a Stream.t