我正在使用 LISP,想知道如何访问字符串列表中的成员。我已经尝试了成员函数,但一直得到 NIL。 谢谢
(setq phrase-list '( "What color is the sky?" "It is Blue.")) ;list of strings
(write phrase-list)
(terpri)
(setq x(read-line)) ; I try to input What color is the sky?
(write(member x phrase-list)) ; I keep getting NIL
最佳答案
关于字符串列表上的 lisp 成员函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47233054/