Skip to main content

map

Function map 

Source
pub fn map<T: Send>(
    n: usize,
    threads: usize,
    f: impl Fn(usize) -> T + Sync,
) -> Vec<T>
Expand description

(0..n).map(f).collect() on up to threads threads, in order.

ยงPanics

If f panics.