flatten Nested Both
fun <SuccessOk : AncestorOk, SuccessError : AncestorError, FailureOk : AncestorOk, FailureError : AncestorError, AncestorOk, AncestorError> Outcome<Outcome<SuccessOk, SuccessError>, Outcome<FailureOk, FailureError>>.flattenNestedBoth(): Outcome<AncestorOk, AncestorError>
Flattens nested Outcome values from both the Success and Failure states into a single Outcome.
The returned value and error types are the nearest common AncestorOk and AncestorError across both branches.
Parameters
Ancestor Error
The nearest common ancestor of SuccessError and FailureError.