HH\ImmSet::fromKeysOf

Creates an ImmSet from the keys of the specified container

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

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

Parameters

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

Return Values