Re: [CM] help with case statement

2016-01-26 Thread Lynn Artas
Up and running again. Thanks for the help and resources, Bil! On Tue, Jan 26, 2016 at 2:07 PM, wrote: > 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 Sche

Re: [CM] help with case statement

2016-01-26 Thread bil
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 describe

[CM] help with case statement

2016-01-26 Thread Lynn Artas
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 1