pub fn or_join<I>(iter: I) -> Stringwhere
I: IntoIterator,
I::Item: AsRef<str>,
Expand description
Join the list with an ‘or’ before the last element of the list.
Examples
assert_eq!(reword::or_join(&["a", "b"]), "a or b");
assert_eq!(reword::or_join(&["a", "b", "c"]), "a, b or c");