Created
March 29, 2016 07:22
-
-
Save tuturto/0c88e6cbb9feb2fa3221 to your computer and use it in GitHub Desktop.
absento
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
=> (setv list-1 ["one" "two" "three"]) | |
=> (setv list-2 ["one" "three"]) | |
=> | |
=> (run* [q] | |
... (fresh [x y] | |
... (membero x list-1) | |
... (conde [(membero x list-2) (unifyo y 2)] | |
... [#ss (unifyo y 1)]) | |
... (conde [(unifyo y 2) (unifyo q x)]))) | |
['one', 'three'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment