HH\ImmMap::firstKey

Returns the first key in the current ImmMap

public function firstKey(): ?Tk;

Returns

  • ?Tk - The first key in the current ImmMap, or null if the current ImmMap is empty.

Examples

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