HH\ImmVector::toImmMap

Returns an immutable integer-keyed Map (ImmMap) based on the elements of the current ImmVector.

Description

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

Returns an immutable integer-keyed Map (ImmMap) based on the elements of the current ImmVector.

The keys are 0... count() - 1.

Return Values

Examples

See Vector::toImmMap for usage examples.