Examples · learn/08-collections · 141 of 339
out-of-bounds.panics
tin run examples/learn/08-collections/out-of-bounds.panics.tinfn main() {
let xs = [1, 2, 3]
var i = 0
while true {
print(xs[i])
i += 1
}
} Examples · learn/08-collections · 141 of 339
tin run examples/learn/08-collections/out-of-bounds.panics.tinfn main() {
let xs = [1, 2, 3]
var i = 0
while true {
print(xs[i])
i += 1
}
}