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