fn abbrev_name(name: &str) -> String {
    name.split(' ')
        .map(|x| x.chars().nth(0).unwrap().to_string().to_uppercase())
        .collect::<Vec<_>>()
        .join(".")
}
// alternate solution
// TODO: explain this
alternate solution
TODO: explain this
alternate solution TODO : explain this
fn abbrev_name(name: &str) -> String {
    name.split(' ')
        .map(|x| x.chars().nth(0).unwrap().to_string().to_uppercase())
        .collect::<Vec<_>>()
        .join(".")
}
fn abbrev_name ( name : & str ) -> String { name . split ( ' ' ) . map ( | x | x . chars ( ) . nth ( 0 ) . unwrap ( ) . to_string ( ) . to_uppercase ( ) ) . collect :: < Vec < _ > > ( ) . join ( " " ) }
alternate solution
TODO: explain this
alternate solution TODO : explain this
name
&str
name
&str