UNPKG

@thi.ng/transducers

Version:

Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations

6 lines 411 B
import type { Comparator, Fn0, Nullable } from "@thi.ng/api"; import type { Reducer } from "./api.js"; export declare function minCompare<T>(init: Fn0<T>, cmp?: Comparator<T>): Reducer<T, T>; export declare function minCompare<T>(init: Fn0<T>, src: Iterable<T>): T; export declare function minCompare<T>(init: Fn0<T>, cmp: Nullable<Comparator<T>>, src: Iterable<T>): T; //# sourceMappingURL=min-compare.d.ts.map