You can write<div><br><div>(match l1</div><div> [`(1 2 ,(? (lambda (x) (equal? x a)))) #t]</div><div> [_ #f])</div><div><br></div><div>Robby<br><br>On Friday, March 9, 2012, rob cook  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That is, without using a macro or eval. Id like to do:<br><br>(define a 4)<br>(define l1 &#39;(1 2 3))<br>(match l1<br>  (`(1 2 ,a) #t)<br>  (_ #f))<br><br>So that this example would result in #f, and #t if a bound to 3.<br>

<br>Since of course match has its own quasiquote behavior, this does not seem possible w/o making a macro for &quot;dynamic&quot; match, or building the s-exp and using eval (yuck!).<br><br>Is this correct, or have I missed something obvious?<br>

<br>Thnx<br>Rob<br>
</blockquote></div></div>