sva53262.scm 282 B

12345678910
  1. (define (f op . args)
  2. (if (> (length args) 0)
  3. (begin (display (cons op args)) (newline)
  4. (if (> (length args) 2)
  5. (f op (car args) (cadr args))))
  6. (begin (display "done") (newline))))
  7. (f 'exp 1 2 3)
  8. ;; Output: (exp 1 2 3)
  9. ;; Output: (exp 1 2)