Types

Iter

Iterator. Parent type for all specific iterator types.

Direct children types

Constructors

Iter(i:Iter)
Supports "for i in existing_iterator"
Iter(r:NumRange)
Iter(arr:Arr)
Calls ArrIter constructor.
Iter(h:Hash)

Methods

drop(i:Iter, n:Int)
Fetch and drop next n values from iterator i.
each(i:Iter, cb:Fun)
Calls cb with each element from i
Iter(i:Iter)
Supports "for i in existing_iterator"
take(i:Iter, n:Int)
Fetch and convert to array next n values from iterator i.
throw_if_no_next(i:Iter)
Private method of Iter.ngs, will be hidden in future.