HH\ImmMap::toImmMap

Returns an immutable copy (ImmMap) of the current ImmMap

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

Returns

  • ImmMap<Tk,Tv> - an ImmMap that is a copy of the current ImmMap.

Examples

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