ecl-logo Documentation

SetDifference

SetDifference[a,b]c

returns a list of objects c that are not in both a and b.

Details

  • SetDifference[a,b] is equal to: Union[Join[Complement[a,b],Complement[b,a]]].
  • Input
    Output

Examples

Basic Examples  (3)

Two sets with same elements:

First set is superset of second:

Only one common element: