Rust Vectors
Vec<T> is a growable array stored on the heap. The vec! macro builds one from literal values, push adds an item at the end, and len reports the number of items. The vector must be declared mut to be changed.
Rust
fn main() {
let mut scores = vec![82, 91, 76];
scores.push(95);
let total: i32 = scores.iter().sum();
println!("{} {}", scores.len(), total);
}