Exemple #1
0
        public SetCollection symmetric_difference(SetCollection set)
        {
            if (ReferenceEquals(set, this))
            {
                return(Empty);
            }

            return(Make(SetStorage.SymmetricDifference(_items, set._items)));
        }
Exemple #2
0
        public FrozenSetCollection symmetric_difference([NotNull] FrozenSetCollection set)
        {
            if (object.ReferenceEquals(set, this))
            {
                return(Empty);
            }

            return(Make(SetStorage.SymmetricDifference(_items, set._items)));
        }
Exemple #3
0
        public SetCollection symmetric_difference(object set)
        {
            SetStorage items;

            if (SetStorage.GetItems(set, out items))
            {
                items = SetStorage.SymmetricDifference(_items, items);
            }
            else
            {
                items.SymmetricDifferenceUpdate(_items);
            }
            return(Make(items));
        }
Exemple #4
0
 public SetCollection symmetric_difference(FrozenSetCollection set)
 {
     return(Make(SetStorage.SymmetricDifference(_items, set._items)));
 }