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.
有没有办法取消引用 lisp 中的列表?
我正在尝试比较 2 个字符串,但其中一个在列表中。
这听起来像你想要car的。如果您的第二个结构看起来像'("string"),那么您想要
car
'("string")
(car '("string"))
如果字符串不是列表中的第一个元素,您可能想要(例如)
(nth 2 '(1 symbol "string"))
请记住要比较您想要的字符串equal,而不是=仅用于数字。
equal
=