StrictKeyedIterable::takeWhile

public function takeWhile(
  (function(Tv): bool) $fn,
): KeyedIterable<Tk, Tv>;

Parameters

  • (function(Tv): bool) $fn

Returns