HH\ImmSet::lastValue

Returns the last value in the current ImmSet

public function lastValue(): ?Tv;

This method is interchangeable with lastKey().

Returns

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

Examples

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