thp-lang.org/md/learn/collections/sets.md

103 B

Sets

// Set[Int]
let ages = Set(30, 31, 33, 35)

for age in ages {
    print("{age}")
}