HH\ImmVector::toImmMap

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

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

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

Returns

Examples

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