pub fn pretty_array_like( parts: &[impl AsRef<str>], trailing_comma: bool, ) -> String
Formats an array-like construct.
Tries to format horizontally, but falls back to vertical formatting if the pieces are too long.