for loop index number in swift code example
Example: swift for loop index
for (index, object) in list.enumerated() {
print("Item at \(index): \(object)")
}
for (index, object) in list.enumerated() {
print("Item at \(index): \(object)")
}