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:
use jay_lib::fns::fn_str::last_word;
if let Some(subject)=last_word("abc def"){
assert_eq!("def".to_string(),subject)
}
assert_eq!(None,last_word(""));