Repeat loop
programming
(Or “do loop”) A loop construct found in many procedural languages which repeatedly executes some instructions while a condition is true.
Repeat loops are found in Perl, Pascal, BASIC and C. The initial keyword may be “repeat” or “do” and the condition may be introduced with a “while” or “until” keyword.
In constrast to a while loop, the “loop body” is executed once before the condition is tested. This is useful when the condition depends on the action of the loop body. In the following BASIC loop “Hello” is printed once despite the fact that the condition is false;
i = 2 repeat print “Hello” i = i+1 until i>0
See also while loop and for loop.
(1999-05-06)
Read Also:
- Repeat oneself
Express oneself in the same way or with the same words, as in Grandma forgets she has told us this story before and repeats herself over and over, or This architect tends to repeat himself—all his houses look alike. A well-known version of this idiom is the proverb History repeats itself, first recorded (in English) […]
- Repeat on someone
repeat on someone
- Repechage
noun 1. (in cycling and rowing) a last-chance qualifying heat in which the runners-up in earlier heats race each other, with the winner advancing to the finals. noun 1. a heat of a competition, esp in rowing or fencing, in which eliminated contestants have another chance to qualify for the next round or the final
- Repel
verb (used with object), repelled, repelling. 1. to drive or force back (an assailant, invader, etc.). 2. to thrust back or away. 3. to resist effectively (an attack, onslaught, etc.). 4. to keep off or out; fail to mix with: Water and oil repel each other. 5. to resist the absorption or passage of (water […]
- Repelled
verb (used with object), repelled, repelling. 1. to drive or force back (an assailant, invader, etc.). 2. to thrust back or away. 3. to resist effectively (an attack, onslaught, etc.). 4. to keep off or out; fail to mix with: Water and oil repel each other. 5. to resist the absorption or passage of (water […]