// ets_tracing: off import type * as C from "../core.js" import * as Map from "./map.js" import * as MapError from "./mapError.js" /** * Returns a stream whose failure and success channels have been mapped by * the specified pair of functions, `f` and `g`. */ export function mapBoth_( self: C.Stream, f: (e: E) => E1, g: (a: A) => A1 ): C.Stream { return Map.map_(MapError.mapError_(self, f), g) } /** * Returns a stream whose failure and success channels have been mapped by * the specified pair of functions, `f` and `g`. * * @ets_data_first mapBoth_ */ export function mapBoth(f: (e: E) => E1, g: (a: A) => A1) { return (self: C.Stream) => mapBoth_(self, f, g) }