Methods

takeΒΆ

take(i:Iter, n:Int)

Fetch and convert to array next n values from iterator i.
Source: autoload/Iter.ngs:74

Example

i = Iter([10,20,30])
echo(i.take(2))