On Thu, Dec 9, 2010 at 2:12 PM, Matthias Felleisen <matth...@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
sa...@ccs.neu.edu
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to