pub fn letter_score(b: u8) -> f64 {
    match b {
        b'E' => 12.02,
        b'T' => 9.10,
        b'A' => 8.12,
        b'O' => 7.68,
        b'I' => 7.31,
        b'N' => 6.95,
        b'S' => 6.28,
        b'R' => 6.02,
        b'H' => 5.92,
        b'D' => 4.32,
        b'L' => 3.98,
        b'U' => 2.88,
        b'C' => 2.71,
        b'M' => 2.61,
        b'F' => 2.30,
        b'Y' => 2.11,
        b'W' => 2.09,
        b'G' => 2.03,
        b'P' => 1.82,
        b'B' => 1.49,
        b'V' => 1.11,
        b'K' => 0.69,
        b'X' => 0.17,
        b'Q' => 0.11,
        b'J' => 0.10,
        b'Z' => 0.07,
        b' ' => 0.15,
        _ => -15.0, // apply a high cut to words not in our dictionary.
    }
}
/// letter score is a helper function for problem 3/set1.
/// scores are assigned from table: <http://pi.math.cornell.edu/~mec/2003-2004/cryptography/subs/frequencies.html>
letter score is a helper function for problem 3/set1.
scores are assigned from table.
letter score is a helper function for problem 3 / set1 . scores are assigned from table .
pub fn letter_score(b: u8) -> f64 {
    match b {
        b'E' => 12.02,
        b'T' => 9.10,
        b'A' => 8.12,
        b'O' => 7.68,
        b'I' => 7.31,
        b'N' => 6.95,
        b'S' => 6.28,
        b'R' => 6.02,
        b'H' => 5.92,
        b'D' => 4.32,
        b'L' => 3.98,
        b'U' => 2.88,
        b'C' => 2.71,
        b'M' => 2.61,
        b'F' => 2.30,
        b'Y' => 2.11,
        b'W' => 2.09,
        b'G' => 2.03,
        b'P' => 1.82,
        b'B' => 1.49,
        b'V' => 1.11,
        b'K' => 0.69,
        b'X' => 0.17,
        b'Q' => 0.11,
        b'J' => 0.10,
        b'Z' => 0.07,
        b' ' => 0.15,
        _ => -15.0, // apply a high cut to words not in our dictionary.
    }
}
pub fn letter_score ( b : u8 ) -> f64 { match b { b'E' => 12.02 , b'T' => 9.10 , b'A' => 8.12 , b'O' => 7.68 , b'I' => 7.31 , b'N' => 6.95 , b'S' => 6.28 , b'R' => 6.02 , b'H' => 5.92 , b'D' => 4.32 , b'L' => 3.98 , b'U' => 2.88 , b'C' => 2.71 , b'M' => 2.61 , b'F' => 2.30 , b'Y' => 2.11 , b'W' => 2.09 , b'G' => 2.03 , b'P' => 1.82 , b'B' => 1.49 , b'V' => 1.11 , b'K' => 0.69 , b'X' => 0.17 , b'Q' => 0.11 , b'J' => 0.10 , b'Z' => 0.07 , b' ' => 0.15 , _ => - 15.0 , // apply a high cut to words not in our dictionary. } }
letter score is a helper function for problem 3/set1.
letter score is a helper function for problem 3 / set1 .
b
u8