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 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