HH\Vector::fromItems

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

public static function fromItems(
  ?Traversable<Tv> $iterable,
): Vector<Tv>;

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

Parameters

  • ?Traversable<Tv> $iterable

Return Values