Basic Syntax

Loop

English

Overview

Repeating the same processing until a condition is met.

Details

A control structure that uses constructs such as for or while to repeatedly execute a block until a condition is met. Compilers and JITs sometimes apply optimizations such as hoisting loop invariants or unrolling, so how a loop is written can affect the efficiency of the generated code.

More Programming terms