carlos calderon
2001-05-04 10:42:31 UTC
hi all,
I've got a simple list of facts, i.e:
female(joan).
male(david).
male(paul).
female(rachel).
Well, if i try to compile this, it gives me a warning: discontiguous predicate female/1.
Ok, I can change the order of my predicate to make them "contiguous" but that's not a proper solution.
I went to the gnu_prolog manual, pag-42 section 5.1.5 and based upon that I thought this might work:
discontiguous(female).
female(joan).
male(david).
male(paul).
female(rachel).
but it didn't. I got the same warning.
Again, apologies if the question has been answered before but I am new to the list and on the steep end of prolog's learning curve.
-Carlos
I've got a simple list of facts, i.e:
female(joan).
male(david).
male(paul).
female(rachel).
Well, if i try to compile this, it gives me a warning: discontiguous predicate female/1.
Ok, I can change the order of my predicate to make them "contiguous" but that's not a proper solution.
I went to the gnu_prolog manual, pag-42 section 5.1.5 and based upon that I thought this might work:
discontiguous(female).
female(joan).
male(david).
male(paul).
female(rachel).
but it didn't. I got the same warning.
Again, apologies if the question has been answered before but I am new to the list and on the steep end of prolog's learning curve.
-Carlos