sitelogo
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:

print/2 outputs all elements of a list to Stream in the following form:

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...
scroll to top managed with ubiCMS