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.

Description

public function skipWhile(
  callable $fn,
): KeyedIterable<Tk,Tv>

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.

The returned KeyedIterable will always be a proper subset of the current KeyedIterable.

Parameters

  • callable $fn - The callback used to determine the starting element for the returned KeyedIterable.

Return Values