Function partition

Source
pub fn partition<T, F>(items: Vec<T>, predicate: F) -> (Vec<T>, Vec<T>)
where F: Fn(&T) -> bool,