/** * Lifts an `Either` into an `Effect` value. * * @tsplus static effect/core/io/Effect.Ops fromEither */ export function fromEither(either: Either): Effect { return either.fold(Effect.fail, Effect.succeed) }