HH\ImmSet::firstValue

Returns the first value in the current ImmSet.

Description

public function firstValue(): ?Tv

Returns the first value in the current ImmSet.

This method is interchangeable with firstKey().

Return Values

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

Examples

See Set::firstValue for usage examples.