map

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