HH\Iterable::toImmSet

Returns an immutable set (ImmSet) converted from the current Iterable

Description

public function toImmSet(): ImmSet<Tv>;

Any keys in the current Iterable are discarded.

Return Values

  • ImmSet<Tv> - an ImmSet converted from the current Iterable.