import { IterableX } from '../iterablex.js'; import { ConcatIterable } from '../concat.js'; import { OperatorFunction } from '../../interfaces.js'; /** * Concatenates all inner iterable sequences, as long as the previous * iterable sequence terminated successfully. * * @template T The type of elements in the source sequence. * @returns {OperatorFunction, T>} An operator which concatenates all inner iterable sources. */ export function concatAll(): OperatorFunction, T> { return function concatAllOperatorFunction(source: Iterable>): IterableX { return new ConcatIterable(source); }; }