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

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -