changeset 18511 | f123160b648b |
parent 18510 | a8715bcdf70b |
child 18512 | 828873354c68 |
child 19253 | 45c2b67527f1 |
--- a/Interval.st Thu Jun 25 18:31:31 2015 +0200 +++ b/Interval.st Thu Jun 25 18:34:04 2015 +0200 @@ -48,6 +48,10 @@ For example, the interval (1 to:5) containes the elements (1 2 3 4 5) and (1 to:6 by:2) contains (1 3 5). + The step may be negative, to count backward: + (5 to:1 by:-1) contains (5 4 3 2 1), and (6 to:1 by:-2) contains (6 4 2). + + examples: (1 to:10) do:[:i | Transcript showCR:i]