chickadee » anaphora » nwhen

(nwhen name test xpr . xprs)syntax

Named version of when, i.e. the one-armed if, which allows multiple expressions to be evaluated, if test succeeds. As with nif, the result of test is stored in the variable name, which can be refered in the body.

(nwhen it (memv 3 '(1 2 3 4 5))
  (print it)
  (reverse it))