skip multimethod

Methods

skip(i:Iter, pattern:Any=method)
Returns the given Iter but skipping leading elements while the pattern matches. If all the elements matches the pattern the Iter will be empty.

Returns

Iter

Example

[0, 2, 3, 25, 19, 7].Iter().skip(F(x) x != 3).Arr() returns [3, 25, 19, 7]
skip(i:Iter, count:Int)
Returns the given Iter after consuming first count elements.

Returns

Iter

Example

[3, 4, 5, 34, 5].Iter().skip(3).Arr() == [34, 5] 
skip(tc:TrContext)
Skip current object that matched %EX [1,2,"aa"].tr(Int -> skip(Y)) # The action is called with (Any, TrContext); Y is TrContext then.