Result.mapOr transforms the contained value and returns it, returning the default value if the result is Err.
Result.mapOr
Err
Result<T,E>.mapOr = <U>(def: U, proj: (a: T) => U) => U;
div(2, 0).mapOr(0, n => n * 2) // Ok(0)