HH\Vector::fromArray
Deprecated: Use new Vector($arr)
instead.
Returns a Vector
containing the values from the specified array
public static function fromArray(
darray<arraykey, Tv> $arr,
): Vector<Tv>;
This function is deprecated. Use new Vector($arr)
instead.
Parameters
darray<arraykey, Tv> $arr
- Thearray
to convert to aVector
.
Returns
Vector<Tv>
- AVector
with the values from the providedarray
.