++ and -- has been deprecated in swift as of the latest release and will be removed in Swift 3.
I have this code that is currently working that I want to update, but I am not sure how to rewrite it. Any help would be appreciated.
for var i = 2; i <= remarkIndex; ++i {
if containsWind(metarArray[i]) {
metarDict.updateValue(metarArray[i], forKey: "winds")
}
}
I realize there's a different way Swift likes to make loops, but I am inexperienced with it. When I wrote all of this code, I just used the C++ way I was used to. Looking to have an example I understand that I can apply across my code.