Swift Połącz 2 zestawy

firstSet.union(secondSet) // Union of two sets
firstSet.intersection(secondSet) // Intersection of two sets
firstSet.symmetricDifference(secondSet) // exclusiveOr
Rens