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