Hello, I am experimenting with `Raise` and context...
# arrow
a
Hello, I am experimenting with
Raise
and context receivers. Currently my code uses `Either`s. I am trying to find the equivalent of
Either
mapLeft
.
Copy code
iReturnEither().mapLeft{e -> NewError()}
Copy code
val result = iMayRaise()
how do I convert?
Thank you
a
you need to use
withError
a
Thank you @Alejandro Serrano.Mena 🙂