Prolog newbie here;
I'm trying to define multiple facts at once, but I keep getting the error below:
?- assert(robin(damian, dick)).
true.
?- robin(damian).
ERROR: Undefined procedure: robin/1
ERROR: However, there are definitions for:
ERROR: robin/2
false.
The statements individually seem to work fine:
?- assert(robin(damian)).
true.
?- assert(robin(dick)).
true.
?- robin(damian).
true.
I'm not sure what the syntax error with the first line is, and I've tried changing it in many ways.
Thanks!
dick
. You should call it withrobin(damian,X)
. – Willem Van Onsem