Software Loop
(Redirected from Control flow)
Jump to navigation
Jump to search
A Software Loop is a Sequence Of Statements that ...
- AKA: Loops, Control Flow.
- Example(s):
- See: Infinite Loop, Recursion (Computer Science), Fixed Point Combinator, Tail Recursion, Control Break.
References
2014
- (Wikipedia, 2014) ⇒ http://en.wikipedia.org/wiki/Control_flow#Loops Retrieved:2014-1-13.
- A loop is a sequence of statements which is specified once but which may be carried out several times in succession.
The code "inside" the loop (the body of the loop, shown below as xxx) is obeyed a specified number of times, or once for each of a collection of items, or until some condition is met, or indefinitely.
In functional programming languages, such as Haskell and Scheme, loops can be expressed by using recursion or fixed point iteration rather than explicit looping constructs. Tail recursion is a special case of recursion which can be easily transformed to iteration.
- A loop is a sequence of statements which is specified once but which may be carried out several times in succession.