or<F> method
Returns res
if the result is Err, otherwise returns the Ok value of
this
.
Arguments passed to or
are eagerly evaluated; if you are passing the
result of a function call, it is recommended to use orElse, which is
lazily evaluated.
Implementation
Result<T, F> or<F>(Result<T, F> res) => isOk ? Ok(_okValue) : res;