@thi.ng/transducers
Version:
Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations
25 lines • 702 B
TypeScript
import type { Nullable } from "@thi.ng/api";
/**
* Yields iterator producing concatenation of given iterables.
* Undefined & null inputs are silently ignored, however any
* such values produced or contained in an input will remain.
*
* @example
* ```ts tangle:../export/concat.ts
* import { concat } from "@thi.ng/transducers";
*
* console.log(
* [...concat([1, 2, 3], null, [4, 5])]
* );
* // [ 1, 2, 3, 4, 5 ]
*
* console.log(
* [...concat([1, 2, 3, undefined], null, [4, 5])]
* );
* // [ 1, 2, 3, undefined, 4, 5 ]
* ```
*
* @param sources -
*/
export declare function concat<T>(...sources: Nullable<Iterable<T>>[]): IterableIterator<T>;
//# sourceMappingURL=concat.d.ts.map