Cycle without recursion

32 views
Skip to first unread message

Юлия Домбровская

unread,
Jan 15, 2015, 10:47:34 AM1/15/15
to swi-p...@googlegroups.com
Hi! Please, help me to make a cycle without recursion using swi-prolog. Unfortunately, I have no ideas:(.

Kilian Evang

unread,
Jan 15, 2015, 11:51:33 AM1/15/15
to swi-p...@googlegroups.com
On 01/15/2015 04:47 PM, Юлия Домбровская wrote:
> Hi! Please, help me to make a cycle without recursion using swi-prolog.
> Unfortunately, I have no ideas:(.

If by "cycle" you mean "loop", then you are probably looking for what is
called a *failure-driven loop*. You could e.g. check Anne's tutorial:

http://www.pathwayslms.com/swipltuts/student/#loop
Reply all
Reply to author
Forward
0 new messages