RosettaCodeData/Task/Collections/Rust/collections-1.rust
2016-12-05 22:15:40 +01: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]`