HH\Pair::values

Returns an ImmVector containing the values of the current Pair.

Description

public function values(): ImmVector<mixed>

Returns an ImmVector containing the values of the current Pair.

This method is interchangeable with toImmVector().

Return Values

Examples

<?hh

namespace Hack\UserDocumentation\API\Examples\Pair\Values;

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

$immutable_v = $p->values();

var_dump($immutable_v);
Output
object(HH\ImmVector)#2 (2) {
  [0]=>
  string(3) "foo"
  [1]=>
  float(-1.5)
}