Boolean<T, E> extension
Boolean operations on the contained values
- on
-
- Result<
T, E>
- Result<
Methods
-
and<
U> (Result< U, E> res) → Result<U, E> -
Return
res
if the result isok
, otherwise returns theerr
value ofthis
. -
andThen<
U> (Result< U, E> okMap(T value)) → Result<U, E> -
Calls
op
if the result isok
, otherwise returns theerr
value ofthis
. -
or<
F> (Result< T, F> res) → Result<T, F> -
Returns
res
if the result iserr
, otherwise returns theok
(success) value ofthis
. -
orElse<
F> (Result< T, F> errMap(E error)) → Result<T, F> -
Calls
op
if the result iserr
, otherwise returns theok
value ofthis
.