foreach
ul
each val in [1, 2, 3, 4, 5]
li= val
foreach (x : list)
{
foo(x);
}
for worlds each w:
print 'Hello, {w}!'
for x, y in my_enumerable {
// ...
}
|| items = [5,6,7,8]
for i in items
printline i
Languages with hasForEachLoops include Chapel, Pug, C3, Cyber, Jule, Speedie, hecl
View all concepts with or missing a hasForEachLoops measurement