Skip to content

Glossary: Swift Basics

for loop

Also written: for

A loop that runs a block once for each value in a range, array or string, putting the value in a name you choose.

Where the book teaches it

Related terms

looprangewhile loop