chickadee » anaphora » define-anaphor

(define-anaphor name from rule)syntax

Hygienic macro which writes an anaphoric macro with implicit it, name, from another procedure or macro, from, with rule either #:cascade or #:first Note, that most of the macros above could have been created by means of define-anaphor.

(define-anaphor alist list #:cascade)
(alist 1 (+ it 2) (* it 3)) ; -> '(1 3 9)
(define-anaphor awhen when #:first)
(awhen (* 1 2 3 4 5) (* 2 it)) ; -> 240