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.
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.