HH\Vector::fromArray

Returns a Vector containing the values from the specified array.

Deprecation

Use new Vector($arr) instead.

Description

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

Returns a Vector containing the values from the specified array.

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

Parameters

Return Values