Skip to content

Glossary: Swift Basics

enumerated()

Also written: enumerated

An array method that hands a `for` loop each item together with its index, as in `for (i, drink) in drinks.enumerated()`.

Where the book teaches it

Related terms

arraytupleindex