for index in 0..<2 {
println("\(index)")
}
for index in 0...2 {
println("\(index)")
}
var arr = ["hah","xixi"]
for value in arr {
println("value:\(value)")
}
var i = 0
while i<arr.count {
println("i:\(i)")
i++;
}
var dic = ["1":"ahha","2":"lala"]
for (key,value)in dic {
println("key:\(key),value:\(value)")
}