loop

<programming>

A sequence of instructions in a program that the processor repeats. The loop will usually terminate when some condition is met or it may run indefinitely - an infinite loop.

Structured languages like C and its descendents provide loop statements and keywords for some or all of for loop, while loop and repeat loop. See also loop-and-a-half.

In other languages these constructs may be synthesised with a jump (assembly language) or a GOTO (early Fortran or BASIC).

To "loop through" a list means to process each element in turn.

Last updated: 2019-09-03

Nearby terms:

Looking GlassLOOKSlooploop-and-a-halfloop combinationloop fusion

Try this search on Wikipedia, OneLook, Google


Loading