i need to add extra paramters to a paramter list in prolog
my parsed input will look like:
add(ax,1).
add(ax,10).
add(ax,20).
i need prolog to take each of these procedure calls and add extra paramters to the paramter list at run time in the following order:
add(ax,1,List1,List2).
add(ax,10,List2,List3).
add(ax,20,List3,List4).
my parsed input will look like:
add(ax,1).
add(ax,10).
add(ax,20).
i need prolog to take each of these procedure calls and add extra paramters to the paramter list at run time in the following order:
add(ax,1,List1,List2).
add(ax,10,List2,List3).
add(ax,20,List3,List4).