HH\Vector::__construct

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

public function __construct(
  ?Traversable<Tv> $iterable = null,
): void;

Parameters

  • ?Traversable<Tv> $iterable = null