fn remove_nonalphabetic(list: &[String]) -> Vec<String> {
    let mut new_list = list.to_vec();
    new_list.retain(|word| !word.chars().any(|chr| !is_alphabetic(chr as u8)));
    new_list
}
/// Search inputted list for any words that have any
/// non-alphabetic characters in them. Retain only words
/// that have only alphabetic characters in it.
Search inputted list for any words that have any
non-alphabetic characters in them. Retain only words
that have only alphabetic characters in it.
Search inputted list for any words that have any non - alphabetic characters in them . Retain only words that have only alphabetic characters in it .
fn remove_nonalphabetic(list: &[String]) -> Vec<String> {
    let mut new_list = list.to_vec();
    new_list.retain(|word| !word.chars().any(|chr| !is_alphabetic(chr as u8)));
    new_list
}
fn remove_nonalphabetic ( list : & [ String ] ) -> Vec < String > { let mut new_list = list . to_vec ( ) ; new_list . retain ( | word | ! word . chars ( ) . any ( | chr | ! is_alphabetic ( chr as u8 ) ) ) ; new_list }
Search inputted list for any words that have any
non-alphabetic characters in them.
Search inputted list for any words that have any non - alphabetic characters in them .
list
&[String]
list
&[String]