repeat/0

The predicate repeat, which is defined as follows, is a built-in predicate that is often used to express iteration.
      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 2011-05-12