/** * Lifts an `Maybe` into an `Effect`. If the option is not defined, fail with * the specified `e` value. * * @tsplus static effect/core/io/Effect.Ops getOrFailWith */ export function getOrFailWith(option: Maybe, e: LazyArg): Effect { return option.fold(Effect.failSync(e), Effect.succeed) }