HH\ImmMap::immutable

Returns an immutable copy (ImmMap) of the current ImmMap

public function immutable(): ImmMap<Tk, Tv>;

This method is interchangeable with toImmMap().

Returns

Examples

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