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!

adding extra paramters to a paramter list in prolog

Status
Not open for further replies.

bullet25

Programmer
Feb 10, 2004
2
IE
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).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top