将项目添加到列表末尾的典型方法是什么?
我有一个列表(1 2 3)并想要添加4(其中4是评估结果(+ 2 2))
(setf nlist '(1 2 3)) (append nlist (+ 2 2))
这表示append需要一个列表,而不是一个数字.我怎么做到这一点?
lisp list append common-lisp
append ×1
common-lisp ×1
lisp ×1
list ×1