HH\KeyedIterable::skipWhile
Returns a KeyedIterable
containing the values of the current
KeyedIterable
starting after and including the first value that produces
true
when passed to the specified callback
public function skipWhile(
(function(Tv): bool) $fn,
): KeyedIterable<Tk, Tv>;
The returned KeyedIterable
will always be a proper subset of the current
KeyedIterable
.
Parameters
(function(Tv): bool) $fn
- The callback used to determine the starting element for the returnedKeyedIterable
.
Returns
KeyedIterable<Tk,
Tv>
- AKeyedIterable
that is a proper subset of the currentKeyedIterable
starting after the callback returnstrue
.