fn vector_score(vec: &[u8]) -> isize {
	vec
		.iter()
		.fold(0, |score, character| score + char_score(*character as char))
}
// Give a score to a vector based on the score for each character
Give a score to a vector based on the score for each character
Give a score to a vector based on the score for each character
fn vector_score(vec: &[u8]) -> isize {
	vec
		.iter()
		.fold(0, |score, character| score + char_score(*character as char))
}
fn vector_score ( vec : & [ u8 ] ) -> isize { vec . iter ( ) . fold ( 0 , | score , character | score + char_score ( * character as char ) ) }
Give a score to a vector based on the score for each character
Give a score to a vector based on the score for each character
vec
&[u8]
vec
&[u8]