loop
- noun
- /luːp/
- Specialized
- In coding, a loop allows programmers to automate processes by repeating a sequence until a condition is fulfilled.
- iteration of the loop
- nested loops
- inner loop
OK, so that's basically how a while loop works.
- OK, so that's basically how a while loop works.
- Jonathan, we write a little loop, OK?
Examples
-
OK, so that's basically how a while loop works.
-
And so this is actually a loop between each of these steps.
-
Okay, if, uh, this line is time, this is when the loop begins.
-
I am caught in a time loop.
-
I'm going to nest another loop block inside it.
-
We'll start by creating a very simple for loop which clears off the initial votes.
-
You're stuck in a loop.
-
We can't see it, but we're all trapped inside these strange, repeating loops.
-
The program will execute the same steps repeatedly in a loop until the user decides to stop it.
-
When debugging, it's important to identify when a loop runs indefinitely and doesn't meet its exit condition.
Synonyms
Repeating the same instructions in a program until a condition is met
Idioms
Compounds
- Specialized
A system where part of what it makes is sent back to change how it works
- Specialized
A system that uses feedback to keep things like temperature at the right level
- Specialized
How much output an amplifier sends back to its input, affecting how steady it is
- Specialized
A control system that uses information from sensors to adjust itself automatically
- Specialized
A system that recovers, cleans, and reuses materials to avoid waste
- Specialized
A plane flight that climbs, flies upside down, then dives in a vertical circle with the pilot on the inside
- Specialized
A plane move where it dives, flies upside down, and then climbs back to level flight
How Repetitive
- Texting
- Specialized
Surface Forms
Etymology
Loop in computing borrows the circle image for a modern idea: a loop is a set of instructions that keeps going back to the start and repeats until a condition is met.