HH\ImmSet::toMap

Returns a Map based on the values of the current ImmSet

public function toMap(): Map<arraykey, Tv>;

Each key of the Map will be the same as its value.

Return Values

  • Map<arraykey, Tv> - a Map that that contains the values of the current ImmSet, with each key of the Map being the same as its value.