handleError

inline fun <A> Option<A>.handleError(f: (Unit) -> A): Option<A>
inline fun <E, A> Validated<E, A>.handleError(f: (E) -> A): Validated<Nothing, A>


inline fun <A, B> Either<A, B>.handleError(f: (A) -> B): Either<A, B>

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) }