join

Function join 

Source
pub fn join<T>(sep: &'static str, collection: T) -> impl Display + Debug
Expand description

Displays an iterable with given separator between each item.

let result = fmtools::join("--", &[1, 2, 3, 4]).to_string();
assert_eq!(result, "1--2--3--4");