Question : swift for loop index
Answered by : depressed-donkey-xr147a454ukn
for (index, object) in list.enumerated() { print("Item at \(index): \(object)")
}
Source : | Last Update : Tue, 06 Oct 20
Answered by : depressed-donkey-xr147a454ukn
for (index, object) in list.enumerated() { print("Item at \(index): \(object)")
}
Source : | Last Update : Tue, 06 Oct 20