HH\Iterable::firstValue

Returns the first value in the current Iterable

public function firstValue(): ?Tv;

Returns

  • ?Tv - The first value in the current Iterable, or null if the current Iterable is empty.