SetMinus
The elements of set a that are not also in set b.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
Set differenceMathWorldSetDifferenceWikidataQ845126FungrimSetMinusWolfram LanguageComplement!SetMinus(a, b)the elements of a that are not also in b.Typed signatures
| Type | Package | Applies |
|---|---|---|
(set<any>, value*) -> set | compute-engine | always |
Details
- Not commutative: generally differs from .
- Removing elements that aren't present in
aleaves it unchanged. - Identity: . See Intersection.
- Subtracting a superset of
acollapses the result to . - The result preserves encounter order rather than sorting into a canonical order.
Examples
Scope #
Possible issues #
About
| Examples | 13 |
|---|---|
| Checked against | Wolfram Language 10 agree2 differ |
| Crosswalk | WikipediaMathWorldWikidataFungrimWolfram Language |
See also: Union, Intersection