Scheme Switch-Statement Syntax -


what smartest way create switch statement in scheme?

i want check 1 value against several others, if 1 results true entire function should result true, otherwise false. not syntax in scheme.

in scheme have case:

(case (car '(c d))   ((a e o u) 'vowel)   ((w y) 'semivowel)   (else 'consonant)) ; ==> consonant 

as see compares against literal data. cannot compare value other variables. need cond


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -