Function toggle

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

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

assert_eq!(
    vec!["cASE", "cONVERSION", "lIBRARY"],
    pattern::toggle(&["Case", "CONVERSION", "library"])
);