@thi.ng/transducers
Version:
Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations
5 lines • 304 B
TypeScript
import type { Fn0 } from "@thi.ng/api";
import type { Transducer } from "./api.js";
export declare function interpose<A, B>(sep: B | Fn0<B>): Transducer<A, A | B>;
export declare function interpose<A, B>(sep: B | Fn0<B>, src: Iterable<A>): IterableIterator<A | B>;
//# sourceMappingURL=interpose.d.ts.map