I\'m encountering a change in the swift code which i do not quite understand.
var arr = [] for var i = 1; i <= arr.count; i += 1 { print(\"i want to
The obvious solution in this case would be:
var arr = [] for i in arr.indices { print("I want to see the i \(i)") // 0 ... count - 1 print("I want to see the i \(i + 1)") // 1 ... count }
but carefully read through originaluser2's answer