「Swift3入門」strideで配列の要素をループする

サンプルコード

let  cft = ["data11", "data22", "data33", "data44","data55"]
for i in stride(from: 0, to: cft.count, by: 1) {
    print("\(cft[i])")
}

 

Swift

Posted by arkgame