pub fn split_include<T>(
slice: &mut [T],
predicate: impl FnMut(&T) -> bool,
) -> (&mut [T], &mut [T])
Expand description
Moves items in the slice and splits it so the first returned slice contains all elements where
predicate
is true. The second contains all other.