Join Slack
Powered by
Is there any recoverCatching in the Either.catch a...
# arrow
d
dave08
06/05/2025, 4:39 PM
Is there any recoverCatching in the Either.catch api (something like in Kotlin's Result, where you can chain a few potentially failing operations and still have a fallback), w/o nesting catches?
s
simon.vergauwen
06/05/2025, 4:42 PM
Could you give an example with Result?
d
dave08
06/05/2025, 5:15 PM
If
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/recover-catching.html
c
CLOVIS
06/06/2025, 8:04 AM
It's essentially
leftFlatMap
but I don't know if Arrow has that
d
dave08
06/06/2025, 10:42 AM
There's also mapCatching in Result that might be more like leftFlatMap
Open in Slack
Previous