HH\Vector::addAllKeysOf

Adds the keys of the specified container to the current Vector

public function addAllKeysOf<Tv2>(
  ?KeyedContainer<Tv,Tv2> $container,
): Vector<Tv>;

For every key in the provided KeyedContainer, append that key into the current Vector, assigning the next available integer key for each.

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

Parameters

  • ?KeyedContainer<Tv,Tv2> $container - The KeyedContainer with the new keys to add.

Return Values