AndResult<T, E> extension
- on
-
- Result<
T, E>
- Result<
Methods
-
and(
Result< T, E> result) → Result<T, E> -
Available on Result<
Returns the providedT, E> , provided by the AndResult extensionresult
if current result is success. Otherwise, return the current failure. -
andThen<
U> (Result< U, E> transform(T)) → Result<U, E> -
Available on Result<
Maps current Result<T, E> into a new Result<U, E> provided byT, E> , provided by the AndResult extensiontransform
block if current result is success. Otherwise, return the current failure result.