Wayback Machine
Jun Jul SEP
Previous capture 15 Next capture
2001 2002 2004
10 captures
15 Jul 02 - 6 Jul 08
Close Help
writes a term to a stream in a form defined by the given option-list....
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 > write_term/2/3

write_term/2/3

writes a term to a stream in a form defined by the given option-list.

write_term (+Term, +OptionList)
write_term (+Stream, +Term, +OptionList)

write_term/1 writes a single term (Term) to the current outputstream in the form given by OptionList.
write/2 writes a single term (Term) to the given stream(Stream) in the form given by OptionList.

Arguments

Stream text output stream
Term term
OptionList term (quoted(+Bool), ignore_ops(+Bool), numbervars(+Bool), variable_names(+VarList)).

Examples

?- write_term(hello / World + '$VAR'(2), []).
hello / _1 + $VAR(2)

?- write_term(hello / World + '$VAR'(2), [quoted(true)]). hello / _1 + $VAR(2)

?- write_term(hello / World + '$VAR'(2), [ignore_ops(true)]). +(/(hello,_1),$VAR(2))

?- write_term(hello / World + '$VAR'(2), [numbervars(true)]). hello / _1 + C

?- write_term(hello / World + '$VAR'(2), [variable_names(['Eric' = World])]). hello / Eric + $VAR(2)

Standard

These predicates are part of the ISO-Prolog Standard.

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, 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/write_term/home_en.html
published 2002/7/14 update 1997/6/22 (c) 1996-2002 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan Fax +81-3-5814-3357 http://www.ifcomputer.com
scroll to top managed with WeaveWeb