3 ms·
The problem with prolog is that it is incomplete. Everytime I write this, prolog-fanboys become angry and start spewing out their 5-line "simple solutions":
by timonoko 5y ago
The problem with prolog is that it is incomplete.
Everytime I write this, prolog-fanboys become angry and start spewing out their 5-line "simple solutions":
fib(X,Y+Z) :- fib(X-1,Y),fib(X-2,Z)