fn print_long_array<A, F>( array: &A, f: &mut Formatter<'_>, print_item: F, ) -> Resultwhere A: Array, F: Fn(&A, usize, &mut Formatter<'_>) -> Result,
Helper function for printing potentially long arrays.