HH\Set::toValuesArray
Returns an array containing the values from the current Set
public function toValuesArray(): varray<Tv>;
This method is interchangeable with toKeysArray().
Returns
varray<Tv>- an integer-indexedarraycontaining the values from the currentSet.
Examples
$s = Set {'red', 'green', 'blue', 'yellow'};
$array = $s->toValuesArray();
\var_dump(\HH\is_any_array($array));
\var_dump($array);