HH\Set::fromKeysOf

Creates a Set from the keys of the specified container

public static function fromKeysOf<Tk, Tv2>(
  ?KeyedContainer<Tk,Tv2> $container,
): Set<Tk>;

The keys of the container will be the values of the Set.

Parameters

  • ?KeyedContainer<Tk,Tv2> $container - The container with the keys used to create the Set.

Return Values

  • Set<Tk> - A Set built from the keys of the specified container.