drop multimethod

Methods

drop(e:Eachable1, predicate:Any)experimental Source: stdlib.ngs:506
EXPERIMENTAL! Do not use! Filters out items that satisfy predicate at the begginning of e.

Example

[1,2,3,1,2].drop(X<3)  # [3,1,2]
drop(i:Iter, n:Int) Source: autoload/Iter.ngs:77
Fetch and drop next n values from iterator i.

Example

i = Iter([10,20,30])
drop(i, 1)
echo(i.next())
# Output: 20