Troubleshoot negation
Negation still doesn't seem to be working, although everything else looks good.
This commit is contained in:
parent
3e749a5804
commit
d844c38df2
@ -21,7 +21,7 @@
|
|||||||
(defn negate [db operands input-frames]
|
(defn negate [db operands input-frames]
|
||||||
(filter
|
(filter
|
||||||
(fn [frame]
|
(fn [frame]
|
||||||
(empty? (qeval db operands [frame])))
|
(empty? (qeval db (first operands) [frame])))
|
||||||
input-frames))
|
input-frames))
|
||||||
|
|
||||||
(defn execute [exp]
|
(defn execute [exp]
|
||||||
@ -39,7 +39,8 @@
|
|||||||
call
|
call
|
||||||
frame
|
frame
|
||||||
(fn [v f]
|
(fn [v f]
|
||||||
(throw (IllegalArgumentException. (str "Unknown pattern variable -- LISP-VALUE: " v))))))
|
(throw
|
||||||
|
(IllegalArgumentException. (str "Unknown pattern variable -- LISP-VALUE: " v))))))
|
||||||
[frame]
|
[frame]
|
||||||
[]))
|
[]))
|
||||||
input-frames))
|
input-frames))
|
||||||
|
Loading…
Reference in New Issue
Block a user