pub fn comma_separated_with_or_str(strings: &[&str]) -> String
Expand description

Same as comma_separated_with_or, but takes a vector of &str instead.

This is a separate function from comma_separated_with_or because it is slightly slower as it requires a copy operation per string instead of just a borrow.

§Example

use wagon_utils::comma_separated_with_or_str;

let v = vec!["1", "2", "3"];
assert_eq!("1, 2 or 3".to_string(), comma_separated_with_or_str(&v));