[racket] match in Advanced Student?

From: Adam Shaw (adamshaw at cs.uchicago.edu)
Date: Mon Oct 31 22:21:15 EDT 2011

Since pattern matching has been a topic of discussion lately -- I'm trying to get simple pattern matching to work in Adv. Student -- for example this expression:

(match (make-color 1 2 3)
  [(make-color r g b) (* r g b)])

gets this response 

  match: expected a pattern, but found a part

I would appreciate an explanation or a pointer to how I can understand this. Thanks.

 - Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20111031/a8c1fefd/attachment.html>

Posted on the users mailing list.