RosettaCodeData/Task/Arrays/Rust/arrays-1.rust

4 lines
135 B
Plaintext

let a = [1, 2, 3]; // immutable array
let mut m = [1, 2, 3]; // mutable array
let zeroes = [0; 200]; // creates an array of 200 zeroes