jcu*_*bic 0 lisp lambda common-lisp
我认为这是在Common LISP中编写自执行lambda表达式的唯一方法:
(funcall #'(lambda (x) (format t "~S" x)) 10)
Run Code Online (Sandbox Code Playgroud)
但似乎在GNU / Linux上的CLISP中也可以使用:
((lambda (x) (format t "~S" x)) 10)
Run Code Online (Sandbox Code Playgroud)
这更像您在Scheme中执行的操作。根据Common LISP规范,这是否正确?其他CL实施是否也以这种方式工作。
| 归档时间: |
|
| 查看次数: |
62 次 |
| 最近记录: |