Can anyone help me out with Prolog recursive functions?
I have to type in a recursive input and it should give me true, but it gives me an error and I sitll don´t know how to figure it out
Bob(Food(X)):- Bob(X).
Bob(eat(X)):- Bob(X).
Bob(yummy(X)).
Is what I have and Input Food(Food(eat(yummy)))should result in true
But I get an Error: Unknown procedure: Food/1 (DWIM could not correct goal) this is basically the whole story.
Foodpredicate. Furthermore predicates start with a lowercase, sobob, notBob... - Willem Van Onsemyummy. - Willem Van Onsem