How to check if two sets are identical in Swift?
There fore you could check if A is a subset of B and vise versa.
let abcSet: Set = ["Chips", "Sandwiches", "Salad"]var foodSet = Set(["Salad", "Chips", "Sandwiches"])abcSet.isSubsetOf(foodSet); // truefoodSet.isSubsetOf(abcSet); // true