[plt-scheme] Where can I find documentation or example on pattern-matching with plt-match.ss

From: Guillaume Marceau (gmarceau at cs.brown.edu)
Date: Fri Dec 9 13:05:13 EST 2005

On Thu, 2005-12-08 at 23:16 -0500, Anton van Straaten wrote:
> Andre Mayers wrote:
> > For example, the following code works with "match.ss" but not with
> > "plt-match.ss"
> > 
> > (require (lib "plt-match.ss"))
> > (define x (list 1 (list 23)))
> > (match x [(_ ((set! setit))) (setit 4)])
> 
> With plt-match, I think that last line should be something like:
> 
> (match x [(list _ (list (set! setit))) (setit 4)])

Or:

  (match x [`(,_ (,(set! setit))) (setit 4)])

-- 


Posted on the users mailing list.