public SetCollection symmetric_difference([NotNull] FrozenSetCollection set) { return(Make(SetStorage.SymmetricDifference(_items, set._items))); }
public SetCollection() { _items = new SetStorage(); }
public SetCollection intersection([NotNull] FrozenSetCollection set) { return(Make(SetStorage.Intersection(_items, set._items))); }
public SetCollection difference(object?set) { return(Make( SetStorage.Difference(_items, SetStorage.GetItems(set)) )); }
public void __init__([NotNone] SetCollection set) { _items = set._items.Clone(); }
public SetCollection union([NotNull] SetCollection set) { return(Make(SetStorage.Union(_items, set._items))); }
public bool isdisjoint(object?set) { return(_items.IsDisjoint(SetStorage.GetItems(set))); }
internal FrozenSetCollection(SetStorage set) { _items = set; }
public void discard(object?item) { SetStorage.GetHashableSetIfSet(ref item); _items.Remove(item); }
public void __init__([NotNull] FrozenSetCollection set) { _items = set._items.Clone(); }
public FrozenSetCollection difference([NotNull] SetCollection set) { return(Make( SetStorage.Difference(_items, set._items) )); }
private FrozenSetCollection(SetStorage set) { _items = set; }
internal static SetCollection Make(SetStorage items) { return(new SetCollection(items)); }
internal SetCollection(SetStorage items) { _items = items; }
public bool issubset(object?set) { return(_items.IsSubset(SetStorage.GetItems(set))); }
public virtual string /*!*/ __repr__(CodeContext /*!*/ context) { return(SetStorage.SetToString(context, this, _items)); }
public bool issuperset(object?set) { return(SetStorage.GetItems(set).IsSubset(_items)); }
protected internal FrozenSetCollection(object set) : this(SetStorage.GetFrozenItems(set)) { }
public FrozenSetCollection union([NotNone] SetCollection set) { return(Make(SetStorage.Union(_items, set._items))); }