Symmetric difference - Rosetta Code
Given two sets A and B, where A contains: John Bob Mary Serena and B contains: Jim Mary John Bob compute That is, enumerate the items that are in A or B but not both. This set is called the symmetric difference of A and B. In other words: (the set of item...