@thi.ng/transducers-async
Version:
Async versions of various highly composable transducers, reducers and iterators
11 lines • 995 B
TypeScript
import type { MaybeAsyncIterable } from "@thi.ng/api";
import type { AsyncTransducer } from "./api.js";
export declare function partition<T>(size: number): AsyncTransducer<T, T[]>;
export declare function partition<T>(size: number, all: boolean): AsyncTransducer<T, T[]>;
export declare function partition<T>(size: number, step: number): AsyncTransducer<T, T[]>;
export declare function partition<T>(size: number, step: number, all: boolean): AsyncTransducer<T, T[]>;
export declare function partition<T>(size: number, src: MaybeAsyncIterable<T>): AsyncIterableIterator<T[]>;
export declare function partition<T>(size: number, all: boolean, src: MaybeAsyncIterable<T>): AsyncIterableIterator<T[]>;
export declare function partition<T>(size: number, step: number, src: MaybeAsyncIterable<T>): AsyncIterableIterator<T[]>;
export declare function partition<T>(size: number, step: number, all: boolean, src: MaybeAsyncIterable<T>): AsyncIterableIterator<T[]>;
//# sourceMappingURL=partition.d.ts.map