2024 Clojure 状态调查! 中分享你的想法。

欢迎!请参阅 关于 页面了解此功能的更多信息。

0
core.logic
(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个答案

0
参考:https://clojure.atlassian.net/browse/LOGIC-182(由 alex+import 报告)
...