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));
 }
 public RDList Except(RDList lhs, RDList rhs, object factPool)
 {
     return(new RDList(lhs.Data.Except(rhs.Data).ToArray()));
 }
 public RDList UnionOf(RDList lhs, RDList rhs, object factPool)
 {
     return(new RDList(lhs.Data.Union(rhs.Data).ToArray()));
 }
 public RDList IntersectionOf(RDList lhs, RDList rhs, object factPool)
 {
     return(new RDList(lhs.Data.Intersect(rhs.Data).ToArray()));
 }
 public RDElement LastOf(RDList lhs, object factPool)
 {
     return(lhs.Data[lhs.Data.Count - 1]);
 }
 public RDElement FirstOf(RDList lhs, object factPool)
 {
     return(lhs.Data[0]);
 }
 public RDNumber CountOf(RDList lhs, object factPool)
 {
     return(new RDNumber(lhs.Data.Count));
 }