On Sat, Mar 10, 2012 at 8:46 PM, rob cook <[email protected]> wrote: > Still pondering this, seems it is not possible w/o macro or eval. > > Using eval as follows: > > (eval `(match ',(car z) (,@(cdr words) #t) (_ #f))) > > gets me what I need, but the overhead (and ugliness) of using eval is > killing me. > > In this example, obviously the result of (car z) is what I'm attempting to > match, and > the result of (cdr words) is the actual arbitrary match construct that > results in #t if a match > is found (I use the whole thing inside a filter, hence only #t/f is needed).
Can you give concrete examples for the free variables 'z' and 'words' here? More importantly: what's the task that you're trying to perform? It's possible that 'match' is not the right tool here; more context will help us on the mailing list to determine this. ____________________ Racket Users list: http://lists.racket-lang.org/users

