On Fri, Mar 9, 2012 at 7:44 PM, Robby Findler
<ro...@eecs.northwestern.edu> wrote:
> You can write
>
> (match l1
>  [`(1 2 ,(? (lambda (x) (equal? x a)))) #t]
>  [_ #f])

The following also means the same as what Robby wrote:

 (match l1
  [`(1 2 ,(== a)) #t]
  [_ #f])


-- 
sam th
sa...@ccs.neu.edu

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to