In my class of programming languages, we ran the following program:
range(X,Y,Z) :- X>=Y,X<=Z
This did not compile, and after a short Google search, we found that the prologue uses the = <opporator command, and not <= like most other languages we learned about.
Does anyone have an idea why the prolog does this? Is there a reason?
Thanks in advance.
source
share