Welcome to the CHICKEN Scheme pasting service

DSSSL style lambda list in macro added by InfusoElAmbulant on Sun Mar 30 12:44:55 2014

;; test.scm
(define-syntax test
  (lambda (e . _)
    (apply (lambda (x y #!optional (z "z"))
	     `(string-append ,x ,y ,z))
	   (cdr e))))
(print (test "x" "y"))
(print (test "x" "y" "z2"))
--
csc test.scm && ./test

>> Error: during expansion of (test ...) - unbound variable: optional

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which procedure can be used to check whether its argument is a procedure?
Visually impaired? Let me spell it for you (wav file) download WAV