HH\ImmSet::toMap

Returns a Map based on the values of the current ImmSet.

Description

public function toMap(): Map<mixed,Tv>

Returns a Map based on the values of the current ImmSet.

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

Return Values

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

Examples

See Set::toMap for usage examples.