Skip to content

Instantly share code, notes, and snippets.

@frenchy64
Created September 8, 2011 16:20
Show Gist options
  • Save frenchy64/1203806 to your computer and use it in GitHub Desktop.
Save frenchy64/1203806 to your computer and use it in GitHub Desktop.
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