I\'m trying to define the division in prolog using the remainder theorem and the well-ordering principle.
I have the next procedure for natural number开发者_如何学JAVA is SWI-prolog: natural_number(0).
EDIT: Solved. I was unware that enabling a language extension in the source file did not enable the language extension in GHCi. The solution was to :set FlexibleContexts in GHCi.
I try to understand how axiom resolution works in prolog. Let\'s assume that I define the two basic operations on the natural numbers:
I\'m developing (in Java), for fun, an applic开发者_如何学Cation which uses an unification algorithm.
I have a listview with 200 items. I use a custom view for each row. There is a code that takes some time to calculate, and because of this the list hangs out on scrolling and loads in slow (2-3sec).