我有一个列表:(setq listy '(4 -3 8 99 -40 61 12 -8 2 -20)) 我的功能lenPos应该找到所有正数的列表的长度(即6)。不过,我得到这个错误: *** - +: NIL is not a number
我检查,如果我的列表中的if语句做任何数量的检查之前空。所以我不明白错误来自哪里。 ;num of positive elems
(defun len
我正在使用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