handle Error With
Compose a recovering transform operation on the failure value Throwable whilst flattening Result.
See also
if you want run a function that catches and maps recovers with (Throwable) -> A.
Deprecated
This API is considered redundant. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer the new recover API
Replace with
recover { a -> f(a).bind() }Content copied to clipboard
Applies the given function f if this is a Left, otherwise returns this if this is a Right. This is like flatMap for the exception.