Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我坚持这条简单的路线,但无法将它从 Swift 2 转换为 Swift 3。
for(index = indexes.lastIndex; index != NSNotFound; index = indexes.indexLessThanIndex(index)) { }
这可以用while循环替换
while
var index = indexes.lastIndex while index != NSNotFound { // do something with index index = indexes.indexLessThanIndex(index) }