pub fn iterator_to_string<T>( t_to_string: &dyn Fn(T) -> String, it: impl Iterator<Item = T>, ) -> String
Custom function to pretty-print elements from an iterator The output format is:
[ elem_0, ... elem_n ]