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> - an ImmSet that is a copy of the current ImmSet.

Examples

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