Exemplo n.º 1
0
        public static bool operator <=(SetCollection self, object other)
        {
            ISet s = other as ISet;

            if (s == null)
            {
                throw PythonOps.TypeError("can only compare to a set");
            }

            return(SetHelpers.IsSubset(self, s, false));
        }
Exemplo n.º 2
0
 public object IsSubset(object s)
 {
     return(SetHelpers.IsSubset(this, s));
 }
Exemplo n.º 3
0
 public bool issubset(object set)
 {
     return(SetHelpers.IsSubset(this, set));
 }