In order to create an array in rust it needs to have a predefined size:
arr = [u32; 4];
If instead of 4 I use a variable, it gives an error, unless it is a constant defined for example as:
const SIZE: usize = 4;
The question: is there a way to define the size of the array according to input from the terminal (command line arguments) when running the program? My assumption is that the const has to be defined in compile time, so not using a const. Maybe using a slice this is possible?