T
T
Tolik2014-07-17 22:37:29
Prolog
Tolik, 2014-07-17 22:37:29

What else is interesting in Prolog?

I started studying from an excellent post by one Khabrovchan. Then I found a "function" on the Internet to get the factorial. And I managed to get the factorial... (seen in the title of the question). And this is 35660 digits! Just think about it! And no libraries, like BigInteger in other languages. What else will surprise me with such a wonderful language?
PS The main purpose of this "question" was to show your surprise at such a result, so if it's off topic, throw it in / tmp. Otherwise, I'll be glad to hear about the "buns"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-07-18
@Diel

The main feature of the prologue is the conclusion based on the rules. You describe the rules as predicates and tell the language to find the variables. He is looking for them.
So you've gone a bit to the wrong steppe, because long arithmetic is, as it were, not a feature of the prologue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question