我在考试中遇到了这个问题,你会怎么解决?CONS 是一个基本的 Common Lisp 函数。Common Lisp 环境必须提供哪些功能才能使其工作?没有它,这段代码会发生什么?
(defun test(n l1 l2) (when (plusp n) (append l1 l2) (something (1- n) l1 l2)))
提示>(测试四十二'(4)'(2))
我在考试中遇到了这个问题,你会怎么解决?CONS 是一个基本的 Common Lisp 函数。Common Lisp 环境必须提供哪些功能才能使其工作?没有它,这段代码会发生什么?
(defun test(n l1 l2) (when (plusp n) (append l1 l2) (something (1- n) l1 l2)))
提示>(测试四十二'(4)'(2))