append([],L,L). append([H|T],L,[H|T1]) :- append(T,L,T1). |
?- genlist(1000,L), prolog_append(L,[a],Out).and then type the query
?- genlist(1000,L), table_append(L,[a],Out).append/3 is a particularly bad predicate to table. Type the query
?- table_append(L,[a],Out).leaving off the call to genlist/2, and backtrack through a few answers. Will table_append/3 ever succeed for this predicate? Why not?
Suppose DCG predicates (Section 9) are defined to be tabled. How is this similar to tabling append?