pub fn join_with_conjunction<T, W: Write>(
f: &mut W,
conjunction: &str,
items: impl IntoIterator<Item = T>,
fmt_item: impl Fn(&mut W, T) -> Result,
) -> Result
Expand description
Format an iterator as a natural-language string, separating items with commas and a conjunction (e.g., “and”, “or”) between the last two items.