For-In Loops multiple conditions

前端 未结 5 2023
礼貌的吻别
礼貌的吻别 2021-01-18 02:34

With the new update to Xcode 7.3, a lot of issues appeared related with the new version of Swift 3. One of them says \"C-style for statement is deprecated and will be remove

5条回答
  •  猫巷女王i
    2021-01-18 02:55

    Another way to do so would be like this

    for i in 0 ..< 5 where i < products.count {
    }
    

提交回复
热议问题