More readable genrec.
Explicit quoting is slightly more overhead but worth it I think to show what's going on more clearly.
This commit is contained in:
+2
-1
@@ -191,7 +191,8 @@ combo(times, [_, N|S], S, _, _ ) :- N #< 0, fail.
|
||||
|
||||
combo(genrec, [R1, R0, Then, If|S],
|
||||
[ Else, Then, If|S], E, [ifte|E]) :-
|
||||
append(R0, [[If, Then, R0, R1, genrec]|R1], Else).
|
||||
Quoted = [If, Then, R0, R1, genrec],
|
||||
append(R0, [Quoted|R1], Else).
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user