Troubleshoot negation

Negation still doesn't seem to be working, although everything else
looks good.
This commit is contained in:
Jeremy Dormitzer 2019-07-14 22:58:54 -04:00
parent 3e749a5804
commit d844c38df2

View File

@ -21,7 +21,7 @@
(defn negate [db operands input-frames]
(filter
(fn [frame]
(empty? (qeval db operands [frame])))
(empty? (qeval db (first operands) [frame])))
input-frames))
(defn execute [exp]
@ -39,7 +39,8 @@
call
frame
(fn [v f]
(throw (IllegalArgumentException. (str "Unknown pattern variable -- LISP-VALUE: " v))))))
(throw
(IllegalArgumentException. (str "Unknown pattern variable -- LISP-VALUE: " v))))))
[frame]
[]))
input-frames))