Arrays and Slices

We'll cover the following...

For some complicated reasons that I don’t personally understand, you can’t directly iterate over an array. In other words, this code doesn’t compile:

Press + to interact
fn main() {
let fibs = [1, 1, 2, 3, 5, 8, 13];
for x in fibs {
println!("{}", x);
}
}

Fortunately, we have two ...