1 import Swift 2 3 var s: [Int] = [1, 2, 3, 4] 4 fnull5 func f() { 6 for i in 0..<4 { 7 print(s[i]) 8 } 9 } 10 11 f() 12