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

Compound Predicates?

Status
Not open for further replies.

Oybl

Programmer
Feb 9, 2006
1
SI
Hello!

I have predicates defined as
b(S,G) ::= something.

::= is a defined operator,
S and G are variables.

I need a function, that takes an argument in the form of b(S,G), and finds, what it is related to:

related(E):-
E(_,_) ::= X,
write(X).

this of course doesn't work. So how can this be done?
Please help! Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top