Hello,
I use YAP Prolog. I discovered that portray_clause/2 can print formatted clauses.
For example portray_clause((p(_15231):-q(_15231)) prints:
p(A):-
q(A).
Well...if in my code I have the head in a variable and the body in another variable, for example (X = p(_15231) and Y = q(_15231)), how can I concatenate them or create a unique clause before printing it using portray_clause/2?
Thanks
I use YAP Prolog. I discovered that portray_clause/2 can print formatted clauses.
For example portray_clause((p(_15231):-q(_15231)) prints:
p(A):-
q(A).
Well...if in my code I have the head in a variable and the body in another variable, for example (X = p(_15231) and Y = q(_15231)), how can I concatenate them or create a unique clause before printing it using portray_clause/2?
Thanks