HH\ImmVector::lastKey

Returns the last key in the current ImmVector

public function lastKey(): ?int;

Returns

  • ?int - The last key (an integer) in the current ImmVector, or null if the current ImmVector is empty.

Examples

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