RosettaCodeData/Task/Collections/Rust/collections-1.rust

3 lines
125 B
Plaintext

let a = [1u8,2,3,4,5]; // a is of type [u8; 5];
let b = [0;256] // Equivalent to `let b = [0,0,0,0,0,0... repeat 256 times]`