Home Segments Index Top Previous Next

309: Mainline

You also can send to:by:do: messages, which produce results for numbers separated by the third argument, rather than by 1, as in the following example:

Workspace
1 to: 4 by: 2 do: [:anInteger | Transcript show: anInteger printString; space] 
Transcript 
1 3