| 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.
|