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()`.
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()`.