Boolean<T, E> extension

Boolean operations on the contained values

on

Methods

and<U>(Result<U, E> res) Result<U, E>
Return res if the result is ok, otherwise returns the err value of this.
andThen<U>(Result<U, E> okMap(T value)) Result<U, E>
Calls op if the result is ok, otherwise returns the err value of this.
or<F>(Result<T, F> res) Result<T, F>
Returns res if the result is err, otherwise returns the ok (success) value of this.
orElse<F>(Result<T, F> errMap(E error)) Result<T, F>
Calls op if the result is err, otherwise returns the ok value of this.