map

open fun <V2> map(filter: (V) -> V2): Result<V2, E>

If the result is a success, this method transforms the value to a different type.