| |||||||||||
| 与えられたオプションリストで定義された形式でストリームに項を書く。
write_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)
これらの述語は、ISO-Prolog標準に含まれる。
| document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/term_io/write_term/print_jp.html published 2012/5/21 update 1997/6/22 (c) 1996-2009 IF Computer Japan | ||||||||
|
| 戻る> |
|