HH\ImmVector::concat

Returns an ImmVector that is the concatenation of the values of the current ImmVector and the values of the provided Traversable

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

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

The returned ImmVector is a new object; the current ImmVector is unchanged.

Guide

Parameters

Returns

Examples

See [Vector::concat](</hack/reference/class/Vector/concat/#examples>) for usage examples.