Transition from defrel and facts to pldb.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defrel parent x y) | |
(facts parent ’[[dave kaylen] | |
[frank dave]]) | |
(defn grandparent | |
[x y] | |
(fresh [z] | |
(parent x z) | |
(parent z y))) | |
;; In the REPL | |
user> (run* [q] | |
(fresh [x y] | |
(grandparent x y) | |
(== q [x y]))) | |
;; Result | |
([frank kaylen]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clojure noob here!
Would appreciate any help on how this code should be changed with regards to the deprecation of defrel and facts
and the move to pldb?
Thanks!