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

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

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