import * as tsplus_module_1 from "@effect/core/io/Exit/operations/succeed";
/**
 * Maps over the value type.
 *
 * @tsplus fluent ets/Exit map
 */

export function map_(self, f) {
  switch (self._tag) {
    case "Failure":
      return self;

    case "Success":
      return tsplus_module_1.succeed(f(self.value));
  }
}
/**
 * Maps over the value type.
 *
 * @tsplus static ets/Exit/Aspects map
 */

export const map = f => self => map_(self, f);
//# sourceMappingURL=map.mjs.map