PasteRack.org
Paste # 50854
2018-03-18 19:02:49

Forked from paste # 68017.

Fork as a new paste.

Paste viewed 112 times.


Embed:

compiler-macro?

  1. #!r6rs
  2. (import (rnrs (6)))
  3. (define-syntax plus
  4.   (lambda(stx)
  5.     (syntax-case stx ()
  6.       [(_ . stuff) #'(+ . stuff)]
  7.       [else #'+])))
  8. (map plus '(1 2 3))
  9. (+ 1 2 3)

=>