HH\Set::fromArray

Deprecated: Use new Set($arr) instead.

Returns a Set containing the values from the specified array

public static function fromArray(
  darray<arraykey, Tv> $arr,
): Set<Tv>;

This function is deprecated. Use new Set ($arr) instead.

Parameters

Returns

  • Set<Tv> - A Set with the values from the provided array.