pub fn solution_1(lines: &[&str]) -> u64 {
    lines
        .iter()
        .filter_map(|line| get_illegal_score(line))
        .sum()
}
/// Calculate sum of scores of illegal chars
Calculate sum of scores of illegal chars
Calculate sum of scores of illegal chars
pub fn solution_1(lines: &[&str]) -> u64 {
    lines
        .iter()
        .filter_map(|line| get_illegal_score(line))
        .sum()
}
pub fn solution_1 ( lines : & [ & str ] ) -> u64 { lines . iter ( ) . filter_map ( | line | get_illegal_score ( line ) ) . sum ( ) }
Calculate sum of scores of illegal chars
Calculate sum of scores of illegal chars
lines
&[&str]
lines
&[&str]