//arrow-core/arrow.core/handleError

handleError

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

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>

Do you like Arrow?

Arrow Org
<