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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to uninstantiate a prolog variable ?

Status
Not open for further replies.

Devt

MIS
Sep 9, 2005
6
0
0
US
A lot of predicates "get" a value and bound it to a
Variable given as argument. But if the Variable is already
instantied, then the predicates "set" the current value of
the Variable.
I don't want a new Variable each time i must get a value,
so how to uninstantiate a Variable or how to deal with this
problem ?
 
I have a list
[a,b,[c,d,[s,d],[c,d]]]
how can I simplify it down to
[a,b,c,d,s,d,c,d]?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top