[racket] Loop in Racket

From: John Clements (clements at brinckerhoff.org)
Date: Sun Jun 27 23:21:26 EDT 2010

On Jun 27, 2010, at 6:32 PM, Brad Long wrote:

> Dear racketeers,
> 
> What is the reason for not offering a looping construct in racket? For example, something like:
> 
> (loop (i 1 10) (print i))
> 

It's there:

(for/list ([i (in-range 1 10)]) i)

prints out 

'(1 2 3 4 5 6 7 8 9)


... also, note that 'for/list' contains no opiates.

John 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20100627/d5cfb06e/attachment.p7s>

Posted on the users mailing list.