HH\Iterable::toVector

Returns a Vector converted from the current Iterable

public function toVector(): Vector<Tv>;

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

Return Values

  • Vector<Tv> - a Vector converted from the current Iterable.