Hor*_*rza 0 arrays for-loop tuples swift
我想在第二个位置使用索引的值启动for循环(使用元组).
myArray = [9,1,8,2,7,3,7,94,5]
for (index, element) in myArray.enumerate(){
}
Run Code Online (Sandbox Code Playgroud)
如何在阵列的第二个位置启动它?(索引1和元素1)
小智 5
也许 ?
myArray = [9,1,8,2,7,3,7,94,5]
for (index, element) in myArray.enumerate() where index > 0 {
}
Run Code Online (Sandbox Code Playgroud)