1proc main!() {
2 let mut total = 0
3 4 for x in [1, 2, 3] {
5 total += x
6 }
7 8 for x in [| 4, 5, 6 |] {
9 total += x
10 }
1112 for k:v in {| 7 => 8, 9 => 10 |} {
13 total += k + v
14 }
1516 for x in 11 : 12 : 13 : unit {
17 total += x
18 }
1920 exit total
21}