HH\ImmSet::toKeysArray

Returns an array containing the values from the current ImmSet

public function toKeysArray(): varray<Tv>;

Sets don't have keys. So this method just returns the values.

This method is interchangeable with toValuesArray().

Returns

  • varray<Tv> - an integer-indexed array containing the values from the current ImmSet.

Examples

See [Set::toKeysArray](</hack/reference/class/Set/toKeysArray/#examples>) for usage examples.