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
ImmMap<Tk,
Tv>
- anImmMap
representing a copy of the currentImmMap
.
Examples
See [Map::immutable
](</hack/reference/class/Map/immutable/#examples>) for usage examples.