<div>Hi All,</div><div><br></div><div>I was having fun with sequece-generate* and wrote this</div><div>program as an example of its use.</div><div><br></div><div>(let-values ([(first next) (sequence-generate* '(a b c))])</div>
<div> (let loop ([first first] [next next])</div><div> (when first</div><div> (display first) (newline)</div><div> (call-with-values next loop))))</div><div><br></div><div>The (let loop ([first first] [next next]) ... ) seems redundant.</div>
<div><br></div><div>Would it make sense for let-values to support the following?</div><div><br></div><div>(let-values loop ([(first next) (sequence-generate* '(a b c))])</div><div> (when first</div><div> (display first) (newline)</div>
<div> (call-with-values next loop)))</div><div><br></div><div>-- </div>Jens Axel Søgaard<br>
<div><br></div>