thp-web/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]
2024-02-20 10:17:21 +00:00
val ages = Set(30, 31, 33, 35)
2023-10-02 01:41:38 +00:00
for age in ages {
print("{age}")
}
```