print/1/2
print/1/2 writes a list of terms.
print (+List)
print (+Stream, +List)
print/1 outputs all elements of a list to the current outputstream (see current_output/1) in the following form:
- elements of the sort "quoted(Term)" are written with 'writeq(Term)'.
- all other elements are written with 'write(Element)'.
print/2 outputs all elements of a list to Stream in the following form:
- elements of the sort "quoted(Term)" are written with 'writeq(Stream, Term)'.
- all other elements are written with 'write(Stream, Element)'.
Arguments
Stream text output stream
List list of terms
Examples
?- X=1,Y=2,Z is 1+2, print('the sum of ', X, ' + ', Y, ' is ', Z]).
the sum of 1 + 2 is 3
Standard
These predicates are not part of the ISO-Prolog Standard.
See also
current_op/3,
op/3,
println/1/2,
read/1/2,
read_term/2/3,
write/1/2,
write_canonical/1/2,
write_term/2/3,
writeq/2.
Up
read on...