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

From: Doug Orleans (dougorleans at gmail.com)
Date: Sun Mar 16 20:26:21 EDT 2008

Grant Rettke writes:
 > 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?

It works in the standard scheme language (i.e. #lang scheme) in v3.99.

http://pre.plt-scheme.org/docs/html/guide/for.html

--dougorleans at gmail.com


Posted on the users mailing list.