HH\Set::fromItems

Creates a Set from the given Traversable, or an empty Set if null is passed

public static function fromItems<Tv2>(
  ?Traversable<Tv2> $iterable,
): Set<Tv2>;

This is the static method version of the Set::__construct() constructor.

Parameters

  • ?Traversable<Tv2> $iterable

Return Values