protocol
loopp¶
Loop control constructs protocol.
static(no dependencies on other entities)
Public interface¶
whiledo/2¶
While Condition is true do Action.
staticwhiledo(Condition,Action)whiledo(0,0)whiledo(+callable,@callable) - zero_or_onedowhile/2¶
Do Action while Condition is true.
staticdowhile(Action,Condition)dowhile(0,0)dowhile(@callable,+callable) - zero_or_oneforeach/3¶
For each element Element in List call Goal.
staticforeach(Element,List,Goal)foreach(*,*,0)foreach(@var,+list(term),@callable) - zero_or_oneforeach/4¶
For each element Element in List at position Index call Goal. Index starts at 1.
staticforeach(Element,Index,List,Goal)foreach(*,*,*,0)foreach(@var,@var,+list(term),@callable) - zero_or_oneforto/3¶
Call Goal counting up from First to Last. Increment is 1. For convenience and clarity, First and Last can be arithmetic expressions. This predicate fails iff the Goal fails.
staticforto(First,Last,Goal)forto(*,*,0)forto(+number,+number,@callable) - zero_or_oneforto/4¶
Call Goal counting up from First to Last and instantiating Count to each successive value. Increment is 1. For convenience and clarity, First and Last can be arithmetic expressions. This predicate fails iff the Goal fails.
staticforto(Count,First,Last,Goal)forto(*,*,*,0)forto(@var,+number,+number,@callable) - zero_or_oneforto/5¶
Call Goal counting up from First to Last and instantiating Count to each successive value. For convenience and clarity, First, Last, and Increment can be arithmetic expressions (uses Increment absolute value). This predicate fails iff the Goal fails.
staticforto(Count,First,Last,Increment,Goal)forto(*,*,*,*,0)forto(@var,+number,+number,+number,@callable) - zero_or_onefordownto/3¶
Call Goal counting down from First to Last. Decrement is 1. For convenience and clarity, First and Last can be arithmetic expressions. This predicate fails iff the Goal fails.
staticfordownto(First,Last,Goal)fordownto(*,*,0)fordownto(+number,+number,@callable) - zero_or_onefordownto/4¶
Call Goal counting down from First to Last and instantiating Count to each successive value. Decrement is 1. For convenience and clarity, First and Last can be arithmetic expressions. This predicate fails iff the Goal fails.
staticfordownto(Count,First,Last,Goal)fordownto(*,*,*,0)fordownto(@var,+number,+number,@callable) - zero_or_onefordownto/5¶
Call Goal counting down from First to Last and instantiating Count to each successive value. For convenience and clarity, First, Last, and Decrement can be arithmetic expressions (uses Decrement absolute value). This predicate fails iff the Goal fails.
staticfordownto(Count,First,Last,Decrement,Goal)fordownto(*,*,*,*,0)fordownto(@var,+number,+number,+number,@callable) - zero_or_oneProtected interface¶
(none)
Private predicates¶
(none)
Operators¶
(none)