| |||||||||||
| 2つのゴールのうち、一つを実行する。
+ゴール1;+ゴール2
| |||||||||||
| ;(integer(2.2), integer(3)). | 成功. |
| write(goal1),write(' and goal2'). | 成功して、'goal1'を出力する。 |
この述語は、ISO-Prolog標準に含まれる。
| document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/logic_and_control/disjunction/print_jp.html published 2008/9/1 update 2001/2/7 (c) 1996-2006 IF Computer Japan | ||||||||
|
| 戻る> |
|