pub fn parallel_map<T, R, F>(
data: &[T],
f: F,
n_threads: usize,
) -> CoreResult<Vec<R>>Expand description
Apply f to every element of data in parallel, returning results in the
same order as the input.
n_threads = 0 uses hardware concurrency.