pub fn join_iterator<T: ToString + Sized, U: Iterator<Item = T>, S: Into<String>>(
list: U,
sep: S,
) -> StringExpand description
Join iterators over string types using the given separator
This function can be used to join iterators over string types using the given separator. The separator can be any string, including an empty string. It will not be appended to the end of the result.
ยงExample
use taco_display_utils::join_iterator;
let list = vec!["a", "b", "c"];
assert_eq!(join_iterator(list.iter(), ", "), "a, b, c");