Ejemplo n.º 1
0
 public Maybe <TError> Execute()
 => _parent.Execute()
 .SelectOrElse(
     error => error.ToMaybe(),
     () => _predicate()
                                         ? _errorFactory().ToMaybe()
                                         : Maybe <TError> .Nothing
     );
Ejemplo n.º 2
0
 public Maybe <TError> Execute()
 => _parent.Execute()
 .SelectOrElse(
     error => error.ToMaybe(),
     Succeed
     );