Ranged indexes in for loops

Traditionally one would have to say

for var i = 0; i < 4; ++i {
    forLoopA += i
}

Now in Swift one can use the Half-Open Range Operator index to say

for i in 0..<4 {
    forLoopB += i
}