bldc/tests/test_rest_args_3.lisp

11 lines
137 B
Common Lisp

(defun f (x)
(lambda (y) (rest-args)))
(define g (f 1 2 3 4 5))
(check (and (eq (g 1) '(2 3 4 5))
(eq (g 1 2) '(2))))