tryMap

infix inline fun <T, R> ApiResult<T>.tryMap(block: (T) -> R): ApiResult<R>

Change the type of successful result to R, also wrapping block in another result then folding it (handling exceptions)

See also