Loops/Downward for: Difference between revisions

Line 1,829:
or with a computed array:
<lang smalltalk>(10 to: 0 by: -2),{ 10 factorial . 11 factorial},(1 to: 9 by: 2) do:[:each |
each displayNl.
]</lang>
 
PS: there is also a reverse do, as in:
<lang smalltalk>(0 to:10) reverseDo:[:each |
each displayNl.
]</lang>
Anonymous user