Skip to main content

initials_for_name

Function initials_for_name 

pub fn initials_for_name(name: &str) -> String
Expand description

The first letters of the first and the last word, upper-cased: "Ada Lovelace" gives "AL", "Grace Brewster Hopper" gives "GH", "ada" gives "A". Words without a letter are skipped, so "Tilo 4" gives "T", never "T4".