println/1/2 writes a list of terms, followed by a newline....
Move to
Next Prev
Up Top
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 > println/1/2

println/1/2

println/1/2 writes a list of terms, followed by a newline.

println (+List)
println (+Stream, +List)

println/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)'.

The list is followed by a newline.

println/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)'.

The output will be terminated with a newline.

Arguments

Stream                 text output stream
List                   list of terms

Examples

?- sort("hello world", List), println(['sorted list: ', quoted(List)]).

sorted list: [' ',d,e,h,l,o,r,w]

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
Language
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/println/home_en.html
published 2012/2/6 update 1998/8/7 (c) 1996-2009 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