以下の内容はhttps://fromatom.hatenablog.com/entry/2017/06/08/120058より取得しました。


SwiftでCollectionTypeのindexをなめたい時はindicesが便利

こういうコードを書いてた。

for index in 0..<array.count {    
    // indexを使った処理
}

indices ってのがCollectionTypeに生えていて、それをつかえば良いと知った。

for index in array.indices {    
    // indexを使った処理
}



以上の内容はhttps://fromatom.hatenablog.com/entry/2017/06/08/120058より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14