pub fn first(subject: &str, length: usize) -> String
Extracts the first length
characters from subject
.
subject
- The string to extract from.
length
- The number of characters to extract.
use voca_rs::*;
chop::first("helicopter", 1);
chop::first("błąd", 2);
chop::first("e\u{0301}", 1);