map

infix inline fun <V, E, U> Result<V, E>.map(transform: (V) -> U): Result<U, E>

Maps this Result to Result by either applying the transform function to the value if this Result is Ok, or returning this Err.