UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

18 lines (16 loc) 486 B
// ets_tracing: off import * as O from "../Option/index.mjs"; import { map_ } from "./map.mjs"; /** * Extracts the optional value, or returns the given 'orElse'. */ export function someOrElse(orElse, __trace) { return self => someOrElse_(self, orElse, __trace); } /** * Extracts the optional value, or returns the given 'orElse'. */ export function someOrElse_(self, orElse, __trace) { return map_(self, O.getOrElse(orElse), __trace); } //# sourceMappingURL=someOrElse.mjs.map