From: Sam Tobin-Hochstadt (samth at ccs.neu.edu) Date: Thu Dec 9 14:44:19 EST 2010 |
|
On Thu, Dec 9, 2010 at 2:12 PM, Matthias Felleisen <matthias at ccs.neu.edu> wrote: >> (do ([x 10 (- x 1)]) ((zero? x)) (displayln x)) (for ([x (in-range 10 0 -1)]) (displayln x)) Also, it would be nice if the default `step' value for `in-range' was: (if (<= start end) 1 -1) Then my program would be 3 characters shorter. -- sam th samth at ccs.neu.edu
Posted on the users mailing list. |
|