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