HH\Iterable::skipWhile

Returns an Iterable containing the values of the current Iterable starting after and including the first value that produces true when passed to the specified callback

public function skipWhile(
  (function(Tv): bool) $fn,
): Iterable<Tv>;

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

Parameters

  • (function(Tv): bool) $fn - The callback used to determine the starting element for the returned Iterable.

Returns