Swift 3.0 iterate over String.Index range

后端 未结 9 1318
温柔的废话
温柔的废话 2020-12-16 10:27

The following was possible with Swift 2.2:

let m = \"alpha\"
for i in m.startIndex..

With 3.0,

9条回答
提交回复
热议问题