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

12 lines
103 B
Markdown
Raw Normal View History

2023-10-02 01:41:38 +00:00
# Sets
```thp
// Set[Int]
val ages = Set(30, 31, 33, 35)
for age in ages {
print("{age}")
}
```