is there any way to concat array literals in rust?
For example, I want an array like [0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 9]
I can define an array [0; 8] and a [6, 9], but is there any way to write this into one definition? The only way I know is writing the whole thing out like
let array: [u8; 10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 9];
But is there any way then to wrap the zeros? If I for example want 500 instead of 8 zeros?
I only know it's possible to concat the arrays in runtime, and that's also very complicated, but is there like a literal syntax where you can combine to slices?
Thank you