flat Map Failure
infix inline fun <Ok, ErrorIn, ErrorOut> Outcome<Ok, ErrorIn>.flatMapFailure(transform: (ErrorIn) -> Outcome<Ok, ErrorOut>): Outcome<Ok, ErrorOut>
Transforms Outcome<Ok, ErrorIn> into Outcome<Ok, ErrorOut> by applying transform to the Failure error.
Success outcomes pass through; the
Okis re-wrapped to satisfy the new monad wrapper forErrorOut.Unlike mapFailure, transform must return a full Outcome — the wrapper is not added for you.
No error handling is provided.