Loops/Foreach: Difference between revisions

→‎{{header|ALGOL 68}}: Added note about ALGOL 68RS and algol68toc
(Added solution for Action!)
(→‎{{header|ALGOL 68}}: Added note about ALGOL 68RS and algol68toc)
Line 280:
Mary Had +1 little lamb.
</pre>
<br>
Note: [[ALGOL 68S]] actually has a reserved word FOREACH that is used to break arrays in to portions, and process in parallel.
<br>
<br>[[ALGOL 68RS]] and algol68toc have a FORALL loop, the following is equivalent to the example above:
<lang algol68>FORALL index IN collection DO
print((collection[index]," "))
OD</lang>
 
=={{header|AmigaE}}==
3,021

edits