transform

inline fun <R> transform(block: (T) -> KmmResult<R>): KmmResult<R>(source)

Transforms this KmmResult into a KmmResult of different success type according to block and leaves the failure case untouched. Avoids nested KmmResults.