Next: , Previous: , Up: ref-iou-tou   [Contents][Index]


4.6.4.4 Displaying Terms

Like write_canonical/[1,2], display/1 ignores operator declarations and shows all compound terms in standard prefix form. For example, the command

| ?- display(a+b).  

produces the following:

+(a,b) 

Unlike write_canonical/[1,2], display/1 does not put quotes around atoms and functors, even when needed for reading the term back in, so write_canonical/[1,2] is often preferable. See mpg-ref-display.


Send feedback on this subject.