<div dir="ltr">Hi Mark<div><br></div><div><div>'in-value' -- which is new to me - thanks Sam! -- is cleaner than using a 'let' (or 'define') outside the for/list, hence preferable.</div><div><br></div>
Re-factoring my earlier example:<div>
<br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="courier new, monospace">(define (mersenne-primes-3 n)</font></div><div><font face="courier new, monospace"> (for*/list ([i n]</font></div>
<div><font face="courier new, monospace"> [c (in-value (sub1 (expt 2 i)))]</font></div><div><font face="courier new, monospace"> #:when (prime? c))</font></div><div><font face="courier new, monospace"> (list i c)))</font></div>
</blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">Core Racketeers: Maybe add an 'in-values' example to the docs?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Dan</div></div>
<div class="gmail_extra"><div dir="ltr"><div style="font-family:arial;font-size:small">
<br></div></div>
</div></div>