2024年Clojure调查问卷中分享您的想法!

欢迎!请查看关于页面了解更多有关如何使用本站的信息。

0
core.logic

(run* (link: out)

  (fresh (link: y z)
         (rembero y (list 'a 'b y 'd z 'e) out)))

=>
((b a d _0 e)
(a b d _0 e)
((a b d _0 e) :- (!= (_1 b)) (!= (_1 a)))
((a b _0 d e) :- (!= (_0 _0)) (!= (_0 b)) ((image: = (_0 d)) ()= (_0 a))))

1 答案

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