0
當我運行以下代碼時,出現錯誤「variable EQ has no value
」。如何克服這個錯誤?common lisp編程EQ錯誤
(defun add_book(bookref title author publisher)
(setf (get bookref 'title) title)
(setf (get bookref 'author) author)
(setf (get bookref 'publisher) publisher)
(setq library (cons bookref library))
bookref)
(defun retrieve_by (property value)
(setq result nil)
(do ((L library (cdr L)))
((NULL L) result)
(cond (EQ (get (car L) property) value)
(cons (car L) result))))
請訪問[幫助]頁面查看提問的基本內容。 – ckruczek