[CM] help with case statement

bil at ccrma.Stanford.EDU bil at ccrma.Stanford.EDU
Tue Jan 26 13:07:50 PST 2016

In case, the keys are in a list, so the syntax
is (case the-case
      ((0) ...)
      ((1) ...)))
You're currently missing the extra parens around the
0 and 1.  For Scheme, "The Scheme Programming Language"
by Dybvig is clear, but try to find the second edition --
I think the newer edition describes r6rs scheme which
has been abandoned.  Scheme is very
close to Common Lisp, so the best intro of all is
probably Peter Seibel's Practical Common Lisp,
available online.

More information about the Cmdist mailing list