Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
'((A 0) (K 1) (E 1) (H 2) (I 2) (G 2) '3 (NIL 3) (J 3) (J 3) '4 (NIL 4) '4 (NIL 4)))
如何从列表中删除'3和?'4
'3
'4
在 Lisp 中
只是简写
(quote 3)
所以你需要使用remove-if传递一个谓词函数来检查被传递的元素是否是两个元素的列表,其中第一个元素是符号quote。
remove-if
quote