or

Result.or returns the option, or returns optionB if the result is Err.

Result<T, E>.or = (res: Result<T, E>) => Result<T, E>;

Example

div(2, 0)        // => Err(MathError.DivisionByZero)
  .or(div(1, 1)) // => Ok(1)