[plt-scheme] stop-before vs. #:while

From: Jos Koot (jos.koot at telefonica.net)
Date: Sun Mar 16 20:31:00 EDT 2008

#lang scheme
jos
----- Original Message ----- 
From: "Grant Rettke" <grettke at acm.org>
To: "Doug Orleans" <dougorleans at gmail.com>
Cc: <plt-scheme at list.cs.brown.edu>
Sent: Monday, March 17, 2008 1:21 AM
Subject: Re: [plt-scheme] stop-before vs. #:while


> On Sun, Mar 16, 2008 at 6:56 PM, Doug Orleans <dougorleans at gmail.com> 
> wrote:
>> I'm finding stop-before to be kind of awkward:
>>
>>  (for/list ((i (stop-before (in-naturals) (lambda (i) (>= (* i i) 25))))) 
>> i)
>>  => (0 1 2 3 4)
>
> Doug how do you run this? I mean what module do you need to include to run 
> it?
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme 



Posted on the users mailing list.