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

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

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