Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.logic by
(run 1 [q]
     (fresh [x]
            (== x :a)
            (== q ({:a 0} x))))
=> (nil)
(run 1 [q]
     (fresh [x]
            (== x :a)
            (== q ({:a 0} :a))))
=> (0)
(run 1 [q]
     (fresh [x]
            (== x :a)
            (== {:a 0} {x q})))
=> ()
(run 1 [q]
     (fresh [x]
            (== x :a)
            (== {:a 0} {:a q})))
=> (0)

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/LOGIC-182 (reported by alex+import)
...