Phani Mahesh
08/18/2020, 10:34 AMcatch
to get a Either<Throwable, *>
from a function that may throw. I'm looking for the reverse. I want to throw if right. Should I just create an extension function?simon.vergauwen
08/18/2020, 11:33 AMIO<Either<Throwable, A>> => IO<A>
. Since Either<Throwable, A> => (suspend () -> A)
is a pure transformation.kioba
08/18/2020, 12:47 PMI want to throw if rightDoes that mean throwing an exception in case you get the right value? (Aka not an left side of the either which is the exception?)
Phani Mahesh
08/20/2020, 4:00 PM