Hello list,
I’m working on translating some old CM code and am stumbling on how to
do a case statement in Grace. I’m giving a pared-down example. Currently
the problems (likely all related) are:
1. I do get one note out (yay) in addition to the error:
>>> Error: attempt to apply the integer
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