Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

vector in rust

//To create a new, empty vector

fn main() {
    let v: Vec<i32> = Vec::new();
}

//vector that holds the values you give it.

fn main() {
    let v = vec![1, 2, 3];
}

 
PREVIOUS NEXT
Tagged: #vector #rust
ADD COMMENT
Topic
Name
5+5 =