HH\Vector::concat

Returns a Vector that is the concatenation of the values of the current Vector and the values of the provided Traversable

public function concat<Tu super Tv>(
  Traversable<Tu> $traversable,
): Vector<Tu>;

The returned Vector is created from the values of the current Vector, followed by the values of the provided Traversable.

The returned Vector is a new object; the current Vector is unchanged. Future changes to the current Vector will not affect the returned Vector, and future changes to the returned Vector will not affect the current Vector.

Parameters

Return Values

  • Vector<Tu> - A new Vector containing the values from $traversable concatenated to the values from the current Vector.