I am copying this very simple line of code from Apple's swift tutorial, but it generates the following error:
.. is unavailable: half open range operator .. has been renamed to ..< (strangely, .. is NOT renamed to ..<)
var firstForLoop = 0
for i in 0..3 {
firstForLoop += i
}
I have tried adding "var":
for var i in 0..3 {
firstForLoop += i
}
And somewhat counterintuitively, that results in "i" being unidentified! I would expect i to be unidentified in the first loop, not the second.
0..3in your code with0..<3. Apple renamed the operator..<instead of.., and i don't understand your question.