HH\ImmMap::lastValue

Returns the last value in the current ImmMap

public function lastValue(): ?Tv;

Returns

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

Examples

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