Hi, everyone.

I want to write loops simpler.

> (do ([i 1 (add1 i)]) ([= i 10]) (display i))
123456789
> (for-each (lambda (i) (display i)) (range 1 10))
123456789

In Common Lisp, I like the extended loop like "for" of C-language.

[3]> (loop for i from 1 below 10 do (print i))

1
2
3
4
5
6
7
8
9
NIL

Please tell me the best solution.

Haruo

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to