@thi.ng/transducers
Version:
Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations
11 lines • 389 B
TypeScript
import type { Fn } from "@thi.ng/api";
import type { Transducer } from "./api.js";
/**
* Helper transducer. Applies given `fn` to each input value, presumably
* for side effects. Discards function's result and yields original
* inputs.
*
* @param fn - side effect
*/
export declare const sideEffect: <T>(fn: Fn<T, void>) => Transducer<T, T>;
//# sourceMappingURL=side-effect.d.ts.map