fn process_dictionary(dict: &mut Dictionary, words: Vec<&str>) {
    for word in words {
        dict.entry(word_signature(word))
            .or_insert_with(HashSet::new)
            .insert(word.to_string());
    }
    dict.retain(|_, words| words.len() != 1);
}
/// Processes a dictionary file, converting the file to a HashMap of
/// signatures to lists of words.
Processes a dictionary file, converting the file to a HashMap of
signatures to lists of words.
Processes a dictionary file converting the file to a HashMap of signatures to lists of words .
fn process_dictionary(dict: &mut Dictionary, words: Vec<&str>) {
    for word in words {
        dict.entry(word_signature(word))
            .or_insert_with(HashSet::new)
            .insert(word.to_string());
    }
    dict.retain(|_, words| words.len() != 1);
}
fn process_dictionary ( dict : & mut Dictionary , words : Vec < & str > ) { for word in words { dict . entry ( word_signature ( word ) ) . or_insert_with ( HashSet :: new ) . insert ( word . to_string ( ) ) ; } dict . retain ( | _ , words | words . len ( ) != 1 ) ; }
Processes a dictionary file, converting the file to a HashMap of
signatures to lists of words.
Processes a dictionary file converting the file to a HashMap of signatures to lists of words .
dict
&mut Dictionary
words
Vec<&str>