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.

Description

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

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.

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.

Return Values