[][src]Function voca_rs::chop::last

pub fn last(subject: &str, length: usize) -> String

Extracts the last length characters from subject.

Arguments

Example

use voca_rs::*;
chop::last("helicopter", 1);
// => "r"
chop::last("błąd", 2);
// => "ąd"
chop::last("e\u{0301}", 1); // or 'é'
// => "\u{0301}"
use voca_rs::Voca;
"helicopter"._last(1);
// => "r"