listify macro map

pull/2/head
Matthew Butterick 11 years ago
parent 17d08f3e9c
commit 6269765c3f

@ -6,8 +6,8 @@
(define-syntax (macro-map stx)
(syntax-case stx ()
[(_ macro-name item)
#'(macro-name item)]
#'(cons (macro-name item) '())]
[(_ macro-name item0 items ...)
#'(begin
#'(cons
(macro-name item0)
(macro-map macro-name items ...))]))

Loading…
Cancel
Save