fn tokenize(chars:&str) -> Vec<String>{
    chars.replace("(", " ( ")
        .replace(")", " ) ")
        .split_whitespace()
        .filter(|s| !(s.is_empty()))
        .map(|s| s.to_string())
        .collect()
}
/// Takes a string of chars and returns a vector of tokens.
Takes a string of chars and returns a vector of tokens.
Takes a string of chars and returns a vector of tokens .
fn tokenize(chars:&str) -> Vec<String>{
    chars.replace("(", " ( ")
        .replace(")", " ) ")
        .split_whitespace()
        .filter(|s| !(s.is_empty()))
        .map(|s| s.to_string())
        .collect()
}
fn tokenize ( chars : & str ) -> Vec < String > { chars . replace ( " " , " " ) . replace ( " " , " " ) . split_whitespace ( ) . filter ( | s | ! ( s . is_empty ( ) ) ) . map ( | s | s . to_string ( ) ) . collect ( ) }
Takes a string of chars and returns a vector of tokens.
Takes a string of chars and returns a vector of tokens .
chars
&str