Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust init vec with values

fn main() {
    let data1 = vec![5, 10, 15];
    println!("{:?}", data1);

    let data2 = vec![5; 10];
    println!("{:?}", data2);
}
Source by www.hackertouch.com #
 
PREVIOUS NEXT
Tagged: #rust #init #vec #values
ADD COMMENT
Topic
Name
4+7 =