Logo

Programming-Idioms

History of Idiom 256 > diff from v21 to v22

Edit summary for version 22 by programming-idioms.org:
[Smalltalk] Please link to a doc page specific to this implementation

Version 21

2021-09-03, 12:31:36

Version 22

2021-09-06, 08:19:44

Idiom #256 Count backwards

Print the numbers 5, 4, ..., 0 (included), one line per number.

Idiom #256 Count backwards

Print the numbers 5, 4, ..., 0 (included), one line per number.

Extra Keywords
countdown negative step reverse
Extra Keywords
countdown negative step reverse
Code
5 to: 0 by: -1 do: [:i | Transcript showln: i asString].
Code
5 to: 0 by: -1 do: [:i | Transcript showln: i asString].
Doc URL
https://squeak.org/documentation/terse_guide/