reddish 0.2.0

A Rust utility library
Documentation
1
2
3
4
5
6
7
8
9
#![allow(dead_code)]

pub fn join<T: Clone + ToString>(vec: Vec<T>, sep: &str) -> String {
  vec
    .iter()
    .map(|item| item.to_string())
    .collect::<Vec<String>>()
    .join(sep)
}