level 3
始续终余xxx
楼主
Instead, Lisp lets you include a catchall parameter after the symbol &rest. If a function includes a &rest parameter, any arguments remaining after values have been doled out to all the required and optional parameters are gathered up into a list that becomes the value of the &rest parameter. Thus, the parameter lists for FORMAT and + probably look something like this:
(defun format (stream string &rest values) ...)
(defun + (&rest numbers) ...)
书上是这么说,一般实际编程的时候都怎么用?
2012年09月18日 03点09分
1
(defun format (stream string &rest values) ...)
(defun + (&rest numbers) ...)
书上是这么说,一般实际编程的时候都怎么用?

