idocs / test1

Apache License 2.0
122 stars 15 forks source link

fix a bug in the Control Structures in for loop #4

Open pingzh opened 7 years ago

pingzh commented 7 years ago
x <- c("apples", "oranges", "bananas", "strawberries")
for (i in x) {
    print(x[i])
}

to

x <- c("apples", "oranges", "bananas", "strawberries")
for (i in x) {
    print(i)
}