Why does Prolog use = <instead of <= like most languages?

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.

+4
source share
1 answer

, : <= , Prolog , "", , , .

, (=<)/2 . , .

+4

Source: https://habr.com/ru/post/1629229/


All Articles