Next: , Previous: , Up: mpg-bpr   [Contents][Index]


11.3.66 display/1

Synopsis

display(+Term)

Writes Term on the standard output stream, without quoting atoms, in functional notation, without treating '$VAR'/1 terms specially.

Since quoting is never used, even when needed for reading the term back in, the standard predicate write_canonical/1 is often preferable.

Arguments

Term

term

Description

display(Term) is equivalent to:

write_term(Term, [ignore_ops(true)])

Examples

| ?- display(a+b).
+(a,b)
yes
| ?- read(X), display(X), nl.
|: a + b * c.
+(a,*(b,c))

X = a+b*c

| ?-

Exceptions

Stream errors (see ref-iou-sfh-est).

See Also

ref-iou-tou.


Send feedback on this subject.