1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::StringExt;
pub trait IteratorExt {
	fn join(&mut self, sep: &str) -> String;
}
impl<T: Iterator<Item=impl AsRef<str>>> IteratorExt for T {
	fn join(&mut self, sep: &str) -> String {
		let mut out = String::new();
		out.extend_join(self, sep);
		out
	}
}