HH\Set::toImmSet

Returns an immutable (ImmSet), deep copy of the current Set

public function toImmSet(): ImmSet<Tv>;

This method is interchangeable with immutable().

Return Values

  • ImmSet<Tv> - an ImmSet that is a deep copy of the current Set.