for
let mut sum = 0
for let c in "hellö wörld"
match c
"h" => sum += 1
"e" => sum += 2
"l" => sum += 3
"ö" => sum += 4
"w" => sum += 5
"d" => sum += 6
// Jule has for loops with while-next iterations
let mut i = 0
for i < 10; i++ {
// ...
}
while i in 10
"hello: $i"
ul
for val, index in [1, 2]
li val: #(val), index: #(index)
Languages with hasForLoops include Chapel, C3, bog, Jule, Aardvark, Speedie, Slab, hecl
View all concepts with or missing a hasForLoops measurement