import * as tsplus_module_1 from "@tsplus/stdlib/data/Maybe/getOrElse";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/map";
/**
 * Extracts the optional value, or returns the given 'orElse'.
 *
 * @tsplus fluent ets/STM someOrElse
 */

export function someOrElse_(self, orElse) {
  return tsplus_module_2.map_(self, option => tsplus_module_1.getOrElse_(option, orElse));
}
/**
 * Extracts the optional value, or returns the given 'orElse'.
 *
 * @tsplus static ets/STM/Aspects someOrElse
 */

export const someOrElse = orElse => self => someOrElse_(self, orElse);
//# sourceMappingURL=someOrElse.mjs.map