map

inline fun <R> map(transform: (T) -> R): Result<R, E>

Transforms the success value, preserving errors and their operation context/cause unchanged. Transform exceptions propagate.