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