Skip to content

concat

concat<T>(…iterables): IterableIterator<T>

Defined in: packages/core/src/iterable/concat.ts:11

Lazily chains any number of iterables into one.

Time complexity: O(1) to construct; iterating the result is O(n) total across every source iterable, same as iterating each individually.

T

…Iterable<T, any, any>[]

The iterables to chain, in order.

IterableIterator<T>

An iterator yielding every element of the first iterable, then every element of the second, and so on.