HH\ImmVector::lastValue

Returns the last value in the current ImmVector

public function lastValue(): ?Tv;

Returns

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

Examples

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