Re: [racket] Looping and let-values

2011-10-25 Thread Pierpaolo Bernardi
On Sun, Oct 23, 2011 at 23:29, Jens Axel Søgaard 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

[racket] Looping and let-values

2011-10-23 Thread Jens Axel Søgaard
Hi All, I was having fun with sequece-generate* and wrote this program as an example of its use. (let-values ([(first next) (sequence-generate* '(a b c))]) (let loop ([first first] [next next]) (when first (display first) (newline) (call-with-values next loop The (let loo