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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -