chickadee » anaphora » ncond

(ncond name ((test xpr ...) ... (else ypr ...) ..))syntax

Named version of cond.

The result of each test is stored in the variable name, which can be used in the corresponding expressions xpr ...

(ncond it
  ((memv 6 '(1 2 3 4 5)) it)
  ((memv 3 '(1 2 3 4 5)) it)
  (else it))

Note, that the ordinary cond macro does something similar with the literal symbol =>.