Function jay_lib::fns::fn_str::last_word

source ·
pub fn last_word<S: AsRef<str>>(s: S) -> Option<String>
Expand description

It is get last word form str. Just to remember it. Example:

if Some(subject)=last_word("abc def"){
	  assert_eq!("abc".to_string,subject)
}
assert_eq!(None,last_word(""));