Function listify

Source
pub fn listify<T>(list: &[T], fmt: impl Fn(&T) -> String) -> Option<String>
Expand description

Grammatical tool for displaying messages to end users in a nice form.

Take a list of items and a function to turn those items into a String, and output a display friendly comma separated list of those items.