flatMap

inline fun <V, F, V2> Result<V, F>.flatMap(mapper: (V) -> Result<V2, F>): Result<V2, F>

Maps success value to a new Result or passes failure.

Important: This is a Public Preview API. It may be changed or removed at any time.