Пример #1
0
 public T Accept <T>(ChurchBooleanVisitor <T> visitor)
 {
     return(x.Accept(
                new ChurchBooleanVisitor <T>(
                    y.Accept(visitor),
                    visitor.VisitFalse)));
 }
Пример #2
0
 public T Accept <T>(ChurchBooleanVisitor <T> visitor)
 {
     return(x.Accept(
                new ChurchBooleanVisitor <T>(
                    visitor.VisitTrue,
                    y.Accept(visitor))));
 }
Пример #3
0
 public T Accept <T>(ChurchBooleanVisitor <T> visitor)
 {
     return(b.Accept(
                new ChurchBooleanVisitor <T>(
                    trueCase: visitor.VisitFalse,
                    falseCase: visitor.VisitTrue)));
 }
Пример #4
0
 public static bool ToBool(this IChurchBoolean b) =>
 b.Accept(new ChurchBooleanVisitor <bool>(true, false));
Пример #5
0
 public T Accept <T>(ChurchBooleanVisitor <T> visitor) =>
 _x.Accept(
     new ChurchBooleanVisitor <T>(
         visitor.VisitTrue,
         _y.Accept(visitor)));
Пример #6
0
 public T Accept <T>(ChurchBooleanVisitor <T> visitor) =>
 _x.Accept(
     new ChurchBooleanVisitor <T>(
         _y.Accept(visitor),
         visitor.VisitFalse));