[racket] Looping and let-values

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Tue Oct 25 05:31:30 EDT 2011

On Sun, Oct 23, 2011 at 23:29, Jens Axel Søgaard <jensaxel at soegaard.net> wrote:

> Would it make sense for let-values to support the following?
> (let-values loop ([(first next) (sequence-generate* '(a b c))])
>   (when first
>     (display first) (newline)
>     (call-with-values next loop)))

I wished for this feature many times, but the annoyance of not having it
has always been too small to force me to try and generalize the macro.

I have no definite opinion whether it's worth the addition.

Cheers
P.



Posted on the users mailing list.