pub fn parallel_partition<T: Send + Sync + Clone>(
data: &[T],
predicate: impl Fn(&T) -> bool + Sync + Send,
) -> (Vec<T>, Vec<T>)Expand description
Parallel partition: split data into two groups based on a predicate.
Returns (true_group, false_group).