始续终余xxx
始续终余xxx
关注数: 0
粉丝数: 5
发帖数: 58
关注贴吧数: 6
&rest的用法,可否给几个例子 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) ...) 书上是这么说,一般实际编程的时候都怎么用?
1
下一页