HH\Vector::addAll

For every element in the provided Traversable, append a value into this Vector, assigning the next available integer key for each

public function addAll(
  ?Traversable<Tv> $iterable,
): Vector<Tv>;

If you want to overwrite the values for existing keys, use setAll().

Future changes made to the current Vector ARE reflected in the returned Vector, and vice-versa.

Parameters

  • ?Traversable<Tv> $iterable

Return Values