Code Comments
Programming Forum and web based access to our favorite programming groups.Hi all,
i have a question in prolog
how can i remove the brackets which is printed while im using the rules.
i.e suppose my rule is like following
do(do(cal1,cal2)--> cal1(Cal1), cal(Cal2).
cal1(cal1(X,Y))-->
x(X,Num),
n(N,Num).
and there is a defintion for n and x
when it print the result it keeps the brackets(cal1(cal2(.. (..) ..)..)..) w
ithin the output result
any idea to remove these barckets??????
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.