symmetricDifference

Syntax

symmetricDifference(X, Y) or X^Y

Arguments

X and Y are sets.

Details

Return the union of two sets minus the intersection of the two sets.

Examples

$ x=set([5,3,4])
$ y=set(8 9 4 6);

$ y^x;
set(5,8,3,9,6)

$ x^y;
set(8,5,3,6,9)