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
Traversable<Tu>
$traversable
- TheTraversable
to concatenate to the currentImmVector
.
Returns
ImmVector<Tu>
- A newImmVector
containing the values from$traversable
concatenated to the values from the currentImmVector
.
Examples
See [Vector::concat
](</hack/reference/class/Vector/concat/#examples>) for usage examples.