UNPKG

@effect-ts/system

Version:

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

12 lines (11 loc) 375 B
// ets_tracing: off import * as O from "../../../../Option/index.mjs"; import * as MapError from "./mapError.mjs"; import * as SomeOrFail from "./someOrFail.mjs"; /** * Converts an option on values into an option on errors. */ export function some(self) { return SomeOrFail.someOrFail_(MapError.mapError_(self, O.some), () => O.none); } //# sourceMappingURL=some.mjs.map