The Conditional: COND
The conditional expression has this structure:
(cond
(test1 action1)
(test2 action2)
...
(else default))
(cond
((null? x) NIL)
((number? x) x)
(else (list x)))
Previous slide
Next slide
Back to first slide
View graphic version