Course of Raku / Essentials / Control flow essentials / Loops
Infinite loops
The loop can also be used with only a body:
loop {
say 'Eternity';
}This loop is running infinitely until you terminate the program by,
for example, pressing Ctrl+C. (We will have better ways to
control the loop in the second part of the course.)
Course navigation
← Three-statement
loop | for loops →
💪 Or jump directly to
the exercises in this section.
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська