Skip to main content

partition

Function partition 

Source
fn partition<T>(items: &[T], workers: usize) -> Vec<Vec<(usize, &T)>>
Expand description

Deals the items out round-robin, each with its index in items.