//! Splitting text into the things tally counts. /// The words of `line`: runs of anything but whitespace. pub fn words(line: &str) -> usize { line.split_whitespace().count() } /// The lines of `text`. A last line without a newline still counts. pub fn lines(text: &str) -> impl Iterator { text.lines() }