string-join

Crates.iostring-join
lib.rsstring-join
version0.1.2
sourcesrc
created_at2021-02-09 14:28:43.975387
updated_at2021-02-11 13:56:01.826578
descriptionA python-like way to join items in an iterator with a separator
homepagehttps://gitlab.com/pwoolcoc/string-join
repositoryhttps://gitlab.com/pwoolcoc/string-join
max_upload_size
id352785
size45,459
Paul Woolcock (pwoolcoc)

documentation

https://docs.rs/string-join

README

= String join

A helper trait for joining an iterator by a string-like thing using a python-like syntax

== Usage


use string_join::Join

"=>".join(["a", "b"].iter().cycle().take(5)); // => "a=>b=>a=>b=>a" " ".join(&["a", "b", "c"]); // => "a b c"

let mut f = File::write("foo.txt").unwrap(); "\n".write_join(&mut f, &["a", "b", "c"]); // std::io::Result<5> (writes joined string to writer and returns a result // with either the number of bytes written, or a std::io::Error


Commit count: 0

cargo fmt