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

3 lines
125 B
Text
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
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]`