Logo

Programming-Idioms

History of Idiom 256 > diff from v20 to v21

Edit summary for version 21 by krono:
[Smalltalk] Fix send, parens are not correct here.

Version 20

2021-09-03, 12:15:39

Version 21

2021-09-03, 12:31:36

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/
Doc URL
https://squeak.org/documentation/terse_guide/