// ets_tracing: off import * as Contramap from "./contramap.js" import type * as C from "./core.js" import * as Map from "./map.js" /** * Transforms both inputs and result of this sink using the provided functions. */ export function dimap_( self: C.Sink, f: (in_: In1) => In, g: (z: Z) => Z1 ): C.Sink { return Map.map_(Contramap.contramap_(self, f), g) } /** * Transforms both inputs and result of this sink using the provided functions. * * @ets_data_first dimap_ */ export function dimap(f: (in_: In1) => In, g: (z: Z) => Z1) { return (self: C.Sink) => dimap_(self, f, g) }