I need to create a const array that has only the first few elements non-0, and the rest should be filled with 0s. In C I can do:
const arr[100] = {3,2,1};
but I can't figure out Rust equivalent. I've tried:
const arr:[u8; 100] = [3,2,1, ..Default::default()];
but it tries to put Range object in the array.