[plt-scheme] example of match quasipattern

From: dvanhorn at emba.uvm.edu (dvanhorn at emba.uvm.edu)
Date: Wed Aug 21 19:17:19 EDT 2002

I don't understand the match quasipattern. Could someone give an example of it's

I am trying to do something like

(let ((sym 'duck))
      [(`, at sym . rest) rest] 
      [else #f]))

that would match (list 'duck) or (list 'duck ...). Currently it matches any
pair. I realize

  [('duck . rest) rest]
  [else #f]))

would work. But how can I do it with a quasipattern?


Posted on the users mailing list.