HH\ImmSet::toImmSet
Returns an immutable copy (ImmSet) of the current ImmSet
public function toImmSet(): ImmSet<Tv>;
This function is interchangeable with immutable().
Returns
ImmSet<Tv>- anImmSetthat is a copy of the currentImmSet.
Examples
See [Set::toImmSet](</hack/reference/class/Set/toImmSet/#examples>) for usage examples.