我正在使用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
答案 0 :(得分:6)