Printing Lists

To print a comma-separated list, a concise idiom is to optionally print the comma first, before the element: