Concatenates two sequences.
The source iterable.
The sequence to concatenate to the first sequence.
An IEnumerable that contains the concatenated elements of the two input sequences.
const numbers = [1, 2];const moreNumbers = from(numbers).concatenate([3, 4, 5]); // [1, 2, 3, 4, 5] Copy
const numbers = [1, 2];const moreNumbers = from(numbers).concatenate([3, 4, 5]); // [1, 2, 3, 4, 5]
TSource The type of the source iterable.
The sequences to concatenate to the first sequence.
An IEnumerable that contains the concatenated elements of the two or more input sequences.
const numbers = [1, 2];const evenMoreNumbers = from(numbers).concatenate([3, 4], [5, 6]); // [1, 2, 3, 4, 5, 6] Copy
const numbers = [1, 2];const evenMoreNumbers = from(numbers).concatenate([3, 4], [5, 6]); // [1, 2, 3, 4, 5, 6]
Concatenates two sequences.