How does the predicate 'repeat' create infinite choice points in prolog? -
i not understand how predicate repeat
evaluates true @ times , create infinite choice points. example, when call:
:- repeat, reset, do(task,job).
thank help!
it doesn't work @ once, bit bit. if defined following 2 clauses:
repeat. repeat :- repeat.
Comments
Post a Comment