fn remove_nonalphanumeric(list: &[String]) -> Vec<String> {
    let mut new_list = list.to_vec();
    new_list.retain(|word| !word.chars().any(|c| !c.is_alphanumeric()));
    new_list
}
/// Search inputted list for any words that have any
/// non-alphanumeric characters in it. Retain only words
/// that have only alphanumeric characters in it.
Search inputted list for any words that have any
non-alphanumeric characters in it. Retain only words
that have only alphanumeric characters in it.
Search inputted list for any words that have any non - alphanumeric characters in it . Retain only words that have only alphanumeric characters in it .
fn remove_nonalphanumeric(list: &[String]) -> Vec<String> {
    let mut new_list = list.to_vec();
    new_list.retain(|word| !word.chars().any(|c| !c.is_alphanumeric()));
    new_list
}
fn remove_nonalphanumeric ( list : & [ String ] ) -> Vec < String > { let mut new_list = list . to_vec ( ) ; new_list . retain ( | word | ! word . chars ( ) . any ( | c | ! c . is_alphanumeric ( ) ) ) ; new_list }
Search inputted list for any words that have any
non-alphanumeric characters in it.
Search inputted list for any words that have any non - alphanumeric characters in it .
list
&[String]
list
&[String]