Returns a Vector containing the values of the current Vector starting after and including the first value that produces false when passed to the specified callback

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

That is, skips the continuous prefix of values in the current Vector for which the specified callback returns true.

The returned Vector will always be a subset (but not necessarily a proper subset) of the current Vector.


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

Return Values

  • Vector<Tv> - A Vector that is a subset of the current Vector starting with the value for which the callback first returns false.