Skip to main content

partition_stable

Function partition_stable 

Source
pub fn partition_stable<T, F>(data: &[T], predicate: F) -> (Vec<T>, Vec<T>)
where T: Clone, F: Fn(&T) -> bool,
Expand description

Partition data into two groups: (passing, failing) — stable order.