The array-init crate allows you to initialize arrays with an initializer closure that will be called once for each element until the array is filled.