Skip to main content

interleave_char

Function interleave_char 

Source
pub fn interleave_char(s: &str, sep: char) -> String
Expand description

Insert a separator between characters in a string.

E.g., interleave("abc", '-')"a-b-c".