chickadee » anaphora » awhen

(awhen test xpr . xprs)syntax

Anaphoric version of when, i.e. the one-armed if, which allows multiple expressions to be evaluated, if test succeeds. As with aif, the result of test is stored in the variable it, which can be refered in xpr ...

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