&rest example
(defun add (&rest numbers)
(let ((sum 0))
(dolist (n numbers)
(setq sum (+ sum n)))
sum))
Call it this way:
(add 1 2 4)
Or this way:
(add 9 1 8 4 8 6)
Previous slide
Next slide
Back to first slide
View graphic version