コード例 #1
0
 public Maybe <TError> Execute()
 => _parent.Execute()
 .SelectOrElse(
     error => error.ToMaybe(),
     () => _predicate()
                                         ? _errorFactory().ToMaybe()
                                         : Maybe <TError> .Nothing
     );
コード例 #2
0
 public Maybe <TError> Execute()
 => _parent.Execute()
 .SelectOrElse(
     error => error.ToMaybe(),
     Succeed
     );