HH\Pair::toImmVector
Returns an immutable vector (ImmVector) containing the elements of the
current Pair
public function toImmVector(): ImmVector<mixed>;
Returns
ImmVector<mixed>- anImmVectorwith the elements of the currentPair.
Examples
$p = Pair {'foo', -1.5};
$immutable_v = $p->toImmVector();
\var_dump($immutable_v);