or method

Result<S, F> or(
  1. Result<S, F> other
)

Returns other if this is a failure, otherwise returns this.

Implementation

Result<S, F> or(Result<S, F> other) => isSuccess ? this : other;