We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 281f487 commit be8a4a0Copy full SHA for be8a4a0
1 file changed
samples/fib_fast.pl
@@ -2,7 +2,7 @@
2
fib(A,B) :-
3
fib_(A,0,1,B).
4
5
-fib_(1,_,A,A).
+fib_(1,_,A,A) :- !.
6
fib_(A,B,C,D) :-
7
A > 1,
8
E is A-1,
0 commit comments