mapOr

inline fun <V, E, U> Result<V, E>.mapOr(default: U, transform: (V) -> U): U

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