[Next] [Up] [Previous] [Contents] [Index]
Next: call/1 and once/1 Up: Control constructs Previous: Conjunction, disjunction, negation, and   Contents   Index

repeat/0

The predicate repeat, which is defined as follows, is a built-in predicate that is often used to express iterations.
      repeat.
      repeat:-repeat.
For example, the query
      repeat,write(a),fail
repeatedly outputs 'a's until you type control-c to stop it.  



Neng-Fa Zhou () 2007-06-05