HH\ImmSet::firstValue

Returns the first value in the current ImmSet

public function firstValue(): ?Tv;

This method is interchangeable with firstKey().

Returns

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

Examples

See [Set::firstValue](</hack/reference/class/Set/firstValue/#examples>) for usage examples.