Anonymous user
Loops/Foreach: Difference between revisions
no edit summary
No edit summary |
|||
Line 1,938:
<lang smalltalk>aCollection do: [ :element | element displayNl ].</lang>
(Provided that the objects in the collection understand the <code>displayNl</code> method).
=={{header|Snabel}}==
Prints foo, bar & baz followed by newlines.
<lang snabel>['foo' 'bar' 'baz'] &say for</lang>
=={{header|Sparkling}}==
|