HH\Pair::toVector
Returns a Vector
containing the elements of the current Pair
public function toVector(): Vector<mixed>;
The returned Vector
will, of course, be mutable.
Returns
Vector<mixed>
- aVector
with the elements of the currentPair
.
Examples
$p = Pair {'foo', -1.5};
$v = $p->toVector();
\var_dump($v);