HH\Set::fromArray

Returns a Set containing the values from the specified array.

Deprecation

Use new Set($arr) instead.

Description

public static function fromArray(
  array<T,Tv> $arr,
): Set<Tv>

Returns a Set containing the values from the specified array.

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

Parameters

  • array<T,Tv> $arr - The array to convert to a Set.

Return Values