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:


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.