HH\Set::addAllKeysOf

Adds the keys of the specified container to the current Set as new values

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

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

Parameters

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

Return Values