RosettaCodeData/Task/Collections/Rust/collections-1.rust
2023-07-01 13:44:08 -04:00

2 lines
125 B
Text

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]`