예제 #1
0
 public RDBool IsAny(RDList lhs, RDElement rhs, object factPool)
 {
     foreach (RDElement x in lhs.Data)
     {
         if (Equal(x, rhs, factPool).Data)
         {
             return(new RDBool(true));
         }
     }
     return(new RDBool(false));
     // return new RDBool(lhs.Data.Any(x => Equal(x, rhs, factPool).Data));
 }
예제 #2
0
 public RDList Except(RDList lhs, RDList rhs, object factPool)
 {
     return(new RDList(lhs.Data.Except(rhs.Data).ToArray()));
 }
예제 #3
0
 public RDList UnionOf(RDList lhs, RDList rhs, object factPool)
 {
     return(new RDList(lhs.Data.Union(rhs.Data).ToArray()));
 }
예제 #4
0
 public RDList IntersectionOf(RDList lhs, RDList rhs, object factPool)
 {
     return(new RDList(lhs.Data.Intersect(rhs.Data).ToArray()));
 }
예제 #5
0
 public RDElement LastOf(RDList lhs, object factPool)
 {
     return(lhs.Data[lhs.Data.Count - 1]);
 }
예제 #6
0
 public RDElement FirstOf(RDList lhs, object factPool)
 {
     return(lhs.Data[0]);
 }
예제 #7
0
 public RDNumber CountOf(RDList lhs, object factPool)
 {
     return(new RDNumber(lhs.Data.Count));
 }