create set with array swift code example Example: turning an arrya into a set swift let mySet = Set(["a", "b", "a"]) // Set<String>