Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i want to add extra paramters to a compound term in prolog.

Status
Not open for further replies.

bullet25

Programmer
Feb 10, 2004
2
IE
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).




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top