Created
September 8, 2011 16:20
-
-
Save frenchy64/1203806 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
logic-introduction.facts=> (fact prefer Float Integer) | |
nil | |
logic-introduction.facts=> (fact prefer Integer Float) | |
nil | |
logic-introduction.facts=> (run* [q] | |
(sort-by-preference | |
[Integer Float Object] q)) | |
#<RuntimeException java.lang.RuntimeException: java.lang.Exception: Ambiguous preference: class java.lang.Floatclass java.lang.Integer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment