display | more...
Prev Up Next

A special case of the cond can be compressed into a case expression. This is when every test is a membership test.

(case c
  ((#\a) 1)
  ((#\b) 2)
  ((#\c) 3)
  (else 4))
=> 3

The clause whose head contains the value of c is chosen.

Prev Up Next

Log in or register to write something here or to contact authors.