Loops/Foreach: Difference between revisions

no edit summary
No edit summary
Line 1,725:
<lang self>aCollection do: [| :element | element printLine ].</lang>
(Provided that the objects in the collection understand the <code>printLine</code> method).
 
=={{header|SETL}}==
<lang setl>S := {1,2,3,5,8,13,21,34,55,89};
for e in S loop
print(e);
end loop;</lang>
 
=={{header|Sidef}}==