take multimethod
Methods
- take(something:Eachable1, pattern:Any)experimental Source: stdlib.ngs:1640
EXPERIMENTAL! Do not use! Example
[1,2,3,1,2].take(X<3) # [1,2]
- take(i:Iter, n:Int)
Fetch and convert to array next n values from iterator i. Example
i = Iter([10,20,30]) echo(i.take(2)) # Output: [10,20]