summaryrefslogblamecommitdiffstats
path: root/examples/10_vec.rs
blob: eb0096078d32c3baab5b6e642d30351015242525 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                  
fn main () {
    let mut v = vec![6i, 8i, 22i];
    v.push(58);

    println!("{}:", v.len());
    for value in v.iter() {
        println!("  {}", value);
    }
}