[plt-scheme] looping?
You can implement what are you looking for with macros and recursion. There
are some existing macros on PLaneT---look at control.plt
In this specific case, a Schemer would probably write:
(let loop ()
(if (something-is-done)
'end
(begin (do-something)
(loop))))
Jay
On 6/5/06, Mike <mikee at mikee.ath.cx> wrote:
>
> I know there is intended a lot of recursion for scheme,
> but is there looping? The REPL construct isn't recursive
> (my guess). How do you loop?
>
> (define *running* #t)
> (while *running*
> (if (something-is-done)
> (set! *running* #f)))
>
> Mike
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
--
Jay McCarthy <jay at cs.brown.edu>
http://jay.makeoutcity.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20060605/558ef8ca/attachment.html>