pub fn print_single_letter_histogram(map: &HashMap<AsciiUppercaseByte, usize>) {
    for key in b'A'..=b'Z' {
        print!("{} ", key as char);
        
        let key = AsciiUppercaseByte::try_from(key).unwrap();

        match map.get(&key) {
            Some(&count) => { for _ in 0..count { print!("|"); } }
            None => {}
        }

        println!();
    }
}
/// Prints a single letter frequency map to the console
Prints a single letter frequency map to the console
Prints a single letter frequency map to the console
pub fn print_single_letter_histogram(map: &HashMap<AsciiUppercaseByte, usize>) {
    for key in b'A'..=b'Z' {
        print!("{} ", key as char);
        let key = AsciiUppercaseByte::try_from(key).unwrap();
        match map.get(&key) {
            Some(&count) => { for _ in 0..count { print!("|"); } }
            None => {}
        }
        println!();
    }
}
pub fn print_single_letter_histogram ( map : & HashMap < AsciiUppercaseByte , usize > ) { for key in b'A' ..= b'Z' { print ! ( " " key as char ) ; let key = AsciiUppercaseByte :: try_from ( key ) . unwrap ( ) ; match map . get ( & key ) { Some ( & count ) => { for _ in 0 .. count { print ! ( " " ) ; } } None => { } } println ! ( ) ; } }
Prints a single letter frequency map to the console
Prints a single letter frequency map to the console
map
&HashMap<AsciiUppercaseByte, usize>
map
&HashMap<AsciiUppercaseByte, usize>