HH\ImmSet::fromKeysOf

Creates an ImmSet from the keys of the specified container.

Description

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

Creates an ImmSet from the keys of the specified container.

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

Examples

See Set::fromKeysOf for usage examples.