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 报告)
...