HH\Set::toArray

Returns an array containing the values from the current Set

public function toArray(): HH\array<Tv, Tv>;

For the returned array, each key is the same as its associated value.

Return Values

  • HH\array<Tv, Tv> - an array containing the values from the current Set, where each key of the array are the same as each value.