// ets_tracing: off import { chain_, succeed } from "./core.js" import type { Effect } from "./effect.js" /** * Returns an effect whose success is mapped by the specified `f` function. */ export function map_(_: Effect, f: (a: A) => B, __trace?: string) { return chain_(_, (a: A) => succeed(f(a)), __trace) } /** * Returns an effect whose success is mapped by the specified `f` function. * * @ets_data_first map_ */ export function map(f: (a: A) => B, __trace?: string) { return (self: Effect) => map_(self, f) }