превратить аррию в сет

let mySet = Set(["a", "b", "a"])  // Set<String>
Glamorous Gharial