i want to add extra paramters to a compound term in prolog.
my input will look like:
add(ax,1).
add(ax,10).
add(ax,20).
i need prolog to take each of these compound terms and add extra paramters to them in the following order:
add(ax,1,List1,List2).
add(ax,10,List2,List3).
add(ax,20,List3,List4).
my input will look like:
add(ax,1).
add(ax,10).
add(ax,20).
i need prolog to take each of these compound terms and add extra paramters to them in the following order:
add(ax,1,List1,List2).
add(ax,10,List2,List3).
add(ax,20,List3,List4).