Function split

Source
pub fn split(s: &str, f: impl Fn(char) -> bool) -> (&str, &str)