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)...
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)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.