set
let numbers = [1,1,1,5,5,9,7] let uniqueNumbers = Set(numbers) // {1,7,9,5} (순서x)
array
var uniqueNumbersArranged = Array(uniqueNumbers) uniqueNumbersArranged.sort() // [1,5,7,9]