HH\Iterable::toSet

Returns a Set converted from the current Iterable

public function toSet(): Set<Tv>;

Any keys in the current Iterable are discarded.

Return Values

  • Set<Tv> - a Set converted from the current Iterable.