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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”iterables
Section titled “iterables”…Iterable<T, any, any>[]
The iterables to chain, in order.
Returns
Section titled “Returns”IterableIterator<T>
An iterator yielding every element of the first iterable, then every element of the second, and so on.