orElse<A> method
Takes an Err value and maps it to a Result<T, SomeNewType>.
This is useful for error recovery.
@param f A function to apply to an Err value, leaving Ok values
untouched.
Implementation
@override
Result<T, A> orElse<A>(Result<T, A> Function(E error) f) => ok(this.value);