/** * Transforms both inputs and result of this sink using the provided * functions. * * @tsplus static effect/core/stream/Sink.Aspects dimap * @tsplus pipeable effect/core/stream/Sink.Aspects dimap */ export function dimap( f: (input: In1) => In, g: (z: Z) => Z1 ) { return (self: Sink): Sink => self.contramap(f).map(g) }