HH\ImmVector::toMap

Returns an integer-keyed Map based on the elements of the current ImmVector

Description

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

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

Return Values

  • Map<int, Tv> - An integer-keyed Map with the values of the current ImmVector.

Examples

See Vector::toMap for usage examples.