orElse<F2 extends Object> abstract method

Result<S, F2> orElse<F2 extends Object>(
  1. Result<S, F2> fn(
    1. F
    )
)

Calls fn if the result is Err, otherwise returns the Ok value of this.

Implementation

Result<S, F2> orElse<F2 extends Object>(Result<S, F2> Function(F) fn);