mapValues

infix inline fun <T, R> ApiResult<Iterable<T>>.mapValues(transform: (T) -> R): ApiResult<List<R>>

Executes ApiResult.map on each value of the collection


@JvmName(name = "sequenceMapValues")
infix inline fun <T, R> ApiResult<Sequence<T>>.mapValues(noinline transform: (T) -> R): ApiResult<Sequence<R>>

Executes ApiResult.map on each value of the sequence