<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Would </div><div><br></div><div> (cond </div><div> [testing => values]</div><div> ...)</div><div><br></div><div>work for you? That returns the value of the testing expression w/o evaluating it twice. </div><div><br></div><div><br></div><div><br></div><br><div><div>On May 24, 2013, at 12:08 PM, Don Green wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">
        
        
        
        <style type="text/css">P { margin-bottom: 0.08in; }</style><p style="margin-bottom:0in">It is possible to create a cond
test-expr that also serves as the then-body, however, this means
that the expression would be executed twice.</p><p style="margin-bottom:0in">This seems to be ill advised in
principle.</p><div style="margin-bottom: 0in; ">
<br class="webkit-block-placeholder"></div><p style="margin-bottom:0in">Question: If it is ill-advised to
create a cond test-expression that also serves as the then body, then
what function is recommend?
</p><p style="margin-bottom:0in"><br>
</p><p style="margin-bottom:0in">I am aware of the (cdr (or ... form.</p><p style="margin-bottom:0in">I am aware of the cond ... test-expr =>
proc-expr] form option.</p><p style="margin-bottom:0in">Thanks</p><p style="margin-bottom:0in">Don Green<br>
</p>
</div>
____________________<br> Racket Users list:<br> <a href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a><br></blockquote></div><br></body></html>