Here is yet another solution. The focus of this one is not to be short, but rather to provide error messages that refer to cas-cad-e and not to constructs that cas-cad-e expands to.
Extra tests are provided. -- Jens Axel Søgaard
cas-cad-e-test.rkt
Description: Binary data
cas-cad-e.rkt
Description: Binary data
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users