Loops/Foreach: Difference between revisions

m
Line 283:
[[ALGOL 68S]] has a reserved word FOREACH that is used to break arrays in to portions, and process in parallel.
<br>
<br>[[ALGOL 68RS]] and algol68toc[[Algol68toc]] have a FORALL loop, the following is equivalent to the example above:
<lang algol68>FORALL index IN collection DO
print((collection[index]," "))
3,037

edits