// ets_tracing: off import * as O from "../../../../Option/index.js" import type * as C from "../core.js" import * as Map from "./map.js" /** * Extracts the optional value, or returns the given 'default'. */ export function someOrElse_( self: C.Stream>, default_: A ): C.Stream { return Map.map_( self, O.getOrElseS(() => default_) ) } /** * Extracts the optional value, or returns the given 'default'. * * @ets_data_first someOrElse_ */ export function someOrElse(default_: A) { return (self: C.Stream>) => someOrElse_(self, default_) }