BAP Online Manuals : Library Reference : Library by Name : repeat
Previous: removewindow
Next: retract

6.2.111. repeat

predicate never fails

SYNOPSIS

INCLUDE 'prolib'
repeat
	...
	X = ende,!.

SYNTAX

repeat

ARGUMENTS

(none)

DESCRIPTION

Repeat never fails, it has an infinite number of solutions.
Its definition is:

PREDICATE repeat.
repeat.
repeat:-repeat.

EXAMPLE

repeat,
	read(X),
	write(X),
	X=ende,!.

ERRORS

No runtime errors

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

for , fail


BAP Online Manuals : Library Reference : Library by Name : repeat
Previous: removewindow
Next: retract