For Programmers: Free Programming Magazines  


Home > Archive > Prolog > April 2005 > Remove Brackets









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Remove Brackets
lookTop

2005-04-02, 6:24 am

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(.. (..) ..)..)..) within the output result

any idea to remove these barckets??????
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com