HH\ImmSet::lastValue

Returns the last value in the current ImmSet.

Description

public function lastValue(): ?Tv

Returns the last value in the current ImmSet.

This method is interchangeable with lastKey().

Return Values

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

Examples

See Set::lastValue for usage examples.