flatMap
@ExperimentalSinceKotoolsTypes(version = "4.2")
Transforms the encapsulated value from T to R if this result is a success, or returns the original exception if this result or the one returned by the transform function is a failure.
Transforms the encapsulated value from T to R if this result is a success, or returns the original exception if this result or the one returned by the transform function is a failure.