HH\ImmSet::toImmMap

Returns an immutable map (ImmMap) based on the values of the current ImmSet.

Description

public function toImmMap(): ImmMap<mixed,Tv>

Returns an immutable map (ImmMap) based on the values of the current ImmSet.

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

Return Values

Examples

See Set::toImmMap for usage examples.