println/1/2 は、項のリストを出力し、最後に改行する。...
移動
次へ 前へ
上へ 最上
参考
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
イフコンピュータ > MINERVA > マニュアル > レファレンス > 述語 > 項の入出力 > println/1/2

println/1/2

println/1/2 は、項のリストを出力し、最後に改行する。

println (+リスト)
println (+ストリーム, +項)

println/1は、現在出力ストリームにリストの全要素を、以下の形で出力する。(関連 current_output/1)

  • ソートされた "quoted(項)" の要素は、'writeq(項)'で書かれる。
  • 他の全ての要素は、'write(要素)'で書かれる。

リストの出力のあとで、改行される。

println/2は、ストリームにリストの全要素を、以下の形で出力する。

  • ソートされた "quoted(項)" の要素は、'writeq(ストリーム,項)'で書かれる。
  • 他の全ての要素は、'write(ストリーム, 要素)'で書かれる。

出力は、改行でおわる。

引数

ストリーム             テキスト出力ストリーム
リスト                 項のリスト

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

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

標準

これらの述語は、ISO-Prolog 標準には含まれない。

関連

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.

続く..
MINERVA
ifcomputer logo
f
Expert Services on the Web
言語
English
Japanese
サーバー
USA
Japan
サイトマップ
索引
目次
全体目次
全体索引
印刷向き
imode
PDA
探索
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/term_io/println/home_jp.html
published 2008/10/6 update 1998/8/7 (c) 1996-2006 IF Computer Japan
IF Computer 〒113-0022 Tel 03-5814-3352 start (AT) ifcomputer.com
Customer Support 東京都文京区千駄木5-28-2   http://www.ifcomputer.co.jp
冒頭へ managed with ubiCMS