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