/** * Returns an effect whose success is mapped by the specified `f` function. * * @tsplus static effect/core/io/Effect.Aspects map * @tsplus pipeable effect/core/io/Effect map */ export function map(f: (a: A) => B) { return (self: Effect): Effect => self.flatMap((a) => Effect.sync(f(a))) }