pub fn map<T: Send>( n: usize, threads: usize, f: impl Fn(usize) -> T + Sync, ) -> Vec<T>
(0..n).map(f).collect() on up to threads threads, in order.
(0..n).map(f).collect()
threads
If f panics.
f