print/1/2 writes a list of terms....
Move to
=> <=
Darueber Spitze
See also
current_op/3
op/3
print/1/2
println/1/2
read/1/2
read_term/2/3
write/1/2
write_canonical/1/2
write_term/2/3
writeq/1/2
IF Computer > MINERVA > Manual > Reference > Predicates > Term input/output > print/1/2

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.

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Sprache
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/term_io/print/home_de.html
published 2008/11/17 update 1999/11/29 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS