HH\ImmVector::concat

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

Description

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

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

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.

Parameters

Return Values

Examples

See Vector::concat for usage examples.