orElse<F2 extends Object> method

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

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

Implementation

@override
Result<S, F2> orElse<F2 extends Object>(Result<S, F2> Function(F) fn) {
  return into();
}