[racket] Problem with case

From: Kieron Hardy (kieron.hardy at gmail.com)
Date: Mon Sep 17 18:47:27 EDT 2012

Hi all,

Can anyone explain why the first function below selects 'x1-case as
expected but the second fails to select 'x2-case? Am I expecting something
to happen that shouldn't?




#lang racket

(case 'a
   ['a 'x1-case]
   ['b 'x1-case]
   [(15 2 3) 'y1-case]
   [(10 11 12) 'z1-case])

(case 'a
   [('a 'b) 'x2-case]
   [(15 2 3) 'y2-case]
   [(10 11 12) 'z2-case])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120917/ba5fd7cd/attachment.html>

Posted on the users mailing list.