HH\Iterable::toImmVector

Returns an immutable vector (ImmVector) converted from the current Iterable

Description

public function toImmVector(): ImmVector<Tv>;

Any keys in the current Iterable are discarded and replaced with integer indices, starting with 0.

Return Values

  • ImmVector<Tv> - an ImmVector converted from the current Iterable.