PasteRack.org
Paste # 68017
2018-03-18 19:01:33

Fork as a new paste.

Paste viewed 108 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. (display
  9.  (list (map plus '(1 2 3))
  10.        (+ 1 2 3)))

=>