UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

6 lines (5 loc) 351 B
import { Effect, Monad } from "./main"; export declare function tap<A, M extends Monad<A>>(effect: Effect<A>, value: Monad<A>): M; export declare function tap<A, M extends Monad<A>>(effect: Effect<A>): (value: A) => M; export declare function tap<A>(effect: Effect<A>, value: A): A; export declare function tap<A>(effect: Effect<A>): (value: A) => A;