How would you express a decrementing indexed loop in Swift 3.0, where the syntax below is not valid any more?
for var index = 10 ; index > 0; index-=1{
If you still want to use this C-style loop, here is what you need:
let x = 10 infix operator ..> { associativity left } func ..>(left: Int, right: Int) -> StrideTo { return stride(from: left, to: right, by: -1) } for i in x..>0 { print(i) }