corda / net.corda.core.utilities / Try / flatMap

flatMap

inline fun <B> flatMap(function: (A) -> Try<B>): Try<B>

Returns the given function applied to the value from this Success, or returns this if this is a Failure.