pub fn vec_partition<T, F: Fn(&T) -> bool>( v: Vec<T>, pred: F, ) -> (Vec<T>, Vec<T>)
Partition into matching and non-matching elements.