HH\Pair::toImmVector

Returns an immutable vector (ImmVector) containing the elements of the current Pair

public function toImmVector(): ImmVector<mixed>;

Returns

Examples

$p = Pair {'foo', -1.5};

$immutable_v = $p->toImmVector();

\var_dump($immutable_v);