HH\ImmSet::immutable

Returns an immutable copy (ImmSet) of the current ImmSet.

Description

public function immutable(): ImmSet<Tv>

Returns an immutable copy (ImmSet) of the current ImmSet.

This method is interchangeable with toImmSet().

Return Values

Examples

See Set::immutable for usage examples.