kotest-fp / io.kotest.fp / Try / fold

fold

inline fun <R> fold(ifFailure: (Throwable) -> R, ifSuccess: (T) -> R): R