drop multimethod
Methods
- drop(e:Eachable1, pattern:Any)experimental Source: stdlib.ngs:1656
EXPERIMENTAL! Do not use! Filters out items that match the pattern at the beginning of e. Example
[1,2,3,1,2].drop(X<3) # [3,1,2]
- drop(i:Iter, n:Int)
Fetch and drop next n values from iterator i. Example
i = Iter([10,20,30]) drop(i, 1) echo(i.next()) # Output: 20