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, Speedie, Aardvark, Slab, hecl
View all concepts with or missing a hasForLoops measurement