Symmetric difference: Difference between revisions

m
m (→‎{{header|Phix}}: added example using the new buitin)
Line 1,712:
{Jim, Serena}
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
Mathematica has built-in support for operations on sets, using its generic symbolic lists. This function finds the entries in each list that are not present in the intersection of the two lists.
<lang Mathematica>SymmetricDifference[x_List,y_List] := Join[Complement[x,Intersection[x,y]],Complement[y,Intersection[x,y]]]</lang>
1,111

edits