HH\ImmVector::firstValue

Returns the first value in the current ImmVector

public function firstValue(): ?Tv;

Returns

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

Examples

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