notes src loop-control-flow.md
509 B · 12 lines
Markdown
at main

Loop (Control Flow) #

A loop is a piece of code which will be executed multiple times, in a loop. Loops are provided by most @[imperative][imperative-programming] languages as one of the main @[control flow][] options, while @[functional][functional-programming] languages often do not provide loops, and instead rely on @[recursion][].

There are a few common forms in which loops are often available:

  • @[Indexed for loops][]
  • @[while loops][]
  • @[foreach loops][]
  • @[Infinite loops][]