chickadee » anaphora » alambda

(alambda args xpr . xprs)syntax

Anaphoric version of lambda.

The resulting procedure is bound to the anaphor self. This way, anonymous functions can be recursive as well.

(map (alambda (n) (if (zero? n) 1 (* n (self (- n 1)))))
     '(1 2 3 4 5))