| |||||||||||
| writes a term to a stream in a form defined by the given option-list.
write_term (+Term, +OptionList)
| |||||||||||
| Stream | text output stream |
| Term | term |
| OptionList | term (quoted(+Bool), ignore_ops(+Bool), numbervars(+Bool), variable_names(+VarList)). |
?- 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)
These predicates are part of the ISO-Prolog Standard.
| document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/term_io/write_term/print_en.html published 2008/10/6 update 1997/6/22 (c) 1996-2006 IF Computer Japan | ||||||||
|
| Back> |
|