AlgorithmsSetSymmetricDifference Method |
Name | Description | |
---|---|---|
![]() ![]() | SetSymmetricDifferenceT(IEnumerableT, IEnumerableT) |
Computes the set-theoretic symmetric difference of two collections. The symmetric difference of two sets
is all items that appear in the one of the sets, but not in the other. If an item appears X times in the one set,
and Y times in the other set, the symmetric difference contains the item AbsoluteValue(X - Y) times.
The source collections are not changed.
A new collection is created with the symmetric difference of the collections; the order of the
items in this collection is undefined.
|
![]() ![]() | SetSymmetricDifferenceT(IEnumerableT, IEnumerableT, IEqualityComparerT) |
Computes the set-theoretic symmetric difference of two collections. The symmetric difference of two sets
is all items that appear in the one of the sets, but not in the other. If an item appears X times in the one set,
and Y times in the other set, the symmetric difference contains the item AbsoluteValue(X - Y) times.
The source collections are not changed.
A new collection is created with the symmetric difference of the collections; the order of the
items in this collection is undefined.
|