我遇到的问题是,当我创建一个打印列表某个部分的函数时,它会将其打印为NIL而不是实际的元素.
例如:
> (setf thelist '((a b) (c (d e f)) (g (h i)))
> (defun f1(list)
(print ( car (list))))
> (f1 thelist)
NIL
NIL
But this works:
> (car thelist)
(A B)
Run Code Online (Sandbox Code Playgroud)