Home > polyethylene > PolyAsyncIterable > dropWhile
Return a new iteration that skips the first few elements for which func(element)
returns true
.
Signature:
dropWhile(func: AsyncIndexedPredicate<T>): PolyAsyncIterable<T>;
Parameter | Type | Description |
---|---|---|
func | AsyncIndexedPredicate<T> | The function to call on the elements |
Returns:
PolyAsyncIterable<T>
a new PolyAsyncIterable that yields the same the elements of this
, excepts the first few for whichfunc(element)
returns true