我想使用for-in循环。
答案 0 :(得分:0)
实际上真的很容易。只需使用Array(Zip2)
即可。之后你可以迭代它:
let theZip = Zip2(["Hi", "up?", "that"], ["whats", "Not", "much"])
let myZipArray = Array(theZip)
//without array
for single in theZip{
println(single)
}
//with array
for single2 in myZipArray{
println(single2)
}