pub fn array_from_fn<T, const N: usize>(f: impl FnMut(usize) -> T) -> [T; N]
Helper function to create arrays without requiring Copy
Copy