@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) • 307 B
JavaScript
// ets_tracing: off
import * as E from "../Either/index.mjs";
import { chain_, fail, succeed, succeedWith } from "./core.mjs";
/**
* Lifts an `Either` into a `Sync` value.
*/
export function fromEither(f) {
return chain_(succeedWith(f), E.fold(fail, succeed));
}
//# sourceMappingURL=fromEither.mjs.map