arrow-fx / arrow.fx.extensions / arrow.core.Either
| toIO | converts this Either to an IO. The resulting IO will evaluate to this Eithers Right value or alternatively to the result of applying the specified function to this Left value.fun <E, A> Either<E, A>.~~toIO~~(f: (E) -> Throwable): IO<A>converts this Either to an IO. The resulting IO will evaluate to this Eithers Right value or Left exception. fun <A> Either<Throwable, A>.~~toIO~~(): IO<A> |
Do you like Arrow?
✖