Esempio n. 1
0
 public SetCollection symmetric_difference([NotNull] FrozenSetCollection set)
 {
     return(Make(SetStorage.SymmetricDifference(_items, set._items)));
 }
Esempio n. 2
0
 public SetCollection()
 {
     _items = new SetStorage();
 }
Esempio n. 3
0
 public SetCollection intersection([NotNull] FrozenSetCollection set)
 {
     return(Make(SetStorage.Intersection(_items, set._items)));
 }
Esempio n. 4
0
 public SetCollection difference(object?set)
 {
     return(Make(
                SetStorage.Difference(_items, SetStorage.GetItems(set))
                ));
 }
Esempio n. 5
0
 public void __init__([NotNone] SetCollection set)
 {
     _items = set._items.Clone();
 }
Esempio n. 6
0
 public SetCollection union([NotNull] SetCollection set)
 {
     return(Make(SetStorage.Union(_items, set._items)));
 }
Esempio n. 7
0
 public bool isdisjoint(object?set)
 {
     return(_items.IsDisjoint(SetStorage.GetItems(set)));
 }
Esempio n. 8
0
 internal FrozenSetCollection(SetStorage set)
 {
     _items = set;
 }
Esempio n. 9
0
        public void discard(object?item)
        {
            SetStorage.GetHashableSetIfSet(ref item);

            _items.Remove(item);
        }
Esempio n. 10
0
 public void __init__([NotNull] FrozenSetCollection set)
 {
     _items = set._items.Clone();
 }
Esempio n. 11
0
 public FrozenSetCollection difference([NotNull] SetCollection set)
 {
     return(Make(
                SetStorage.Difference(_items, set._items)
                ));
 }
Esempio n. 12
0
 private FrozenSetCollection(SetStorage set)
 {
     _items = set;
 }
Esempio n. 13
0
 internal static SetCollection Make(SetStorage items)
 {
     return(new SetCollection(items));
 }
Esempio n. 14
0
 internal SetCollection(SetStorage items)
 {
     _items = items;
 }
Esempio n. 15
0
 public bool issubset(object?set)
 {
     return(_items.IsSubset(SetStorage.GetItems(set)));
 }
Esempio n. 16
0
 public virtual string /*!*/ __repr__(CodeContext /*!*/ context)
 {
     return(SetStorage.SetToString(context, this, _items));
 }
Esempio n. 17
0
 public bool issuperset(object?set)
 {
     return(SetStorage.GetItems(set).IsSubset(_items));
 }
Esempio n. 18
0
 protected internal FrozenSetCollection(object set) : this(SetStorage.GetFrozenItems(set))
 {
 }
Esempio n. 19
0
 public FrozenSetCollection union([NotNone] SetCollection set)
 {
     return(Make(SetStorage.Union(_items, set._items)));
 }