/**
 * Flat maps over the value type.
 *
 * @tsplus fluent ets/Exit flatMap
 */
export function flatMap_(self, f) {
  switch (self._tag) {
    case "Failure":
      return self;

    case "Success":
      return f(self.value);
  }
}
/**
 * Flat maps over the value type.
 *
 * @tsplus static ets/Exit/Aspects flatMap
 */

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