Documentation
1
2
3
4
5
6
7
8
9
extern crate undup;

use undup::undup_chars;

fn main() {
    let input = "The   Quick     Brown Fox       Jumps  Over The    Lazy Dog.........";
    let output = undup_chars(&input, vec![' ', '.']);
    println!("{}", output);
}