Function capital

Source
pub fn capital(words: &[&str]) -> Vec<String>
Expand description

Makes the first letter of each word uppercase and the remaining letters of each word lowercase.

assert_eq!(
    vec!["Case", "Conversion", "Library"],
    pattern::capital(&["Case", "CONVERSION", "library"])
);