UNPKG

@effect-ts/system

Version:

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

11 lines (10 loc) 354 B
import * as O from "../../../../Option/index.mjs"; import * as MapError from "./mapError.mjs"; import * as RightOrFail from "./rightOrFail.mjs"; /** * Fails with the error `None` if value is `Left`. */ export function right(self) { return RightOrFail.rightOrFail_(MapError.mapError_(self, O.some), () => O.none); } //# sourceMappingURL=right.mjs.map