Skip to main content

map

Function map 

Source
pub fn map<I, O, F>(items: Vec<I>, parallel: bool, f: F) -> Vec<O>
where I: Send, O: Send, F: Fn(I) -> O + Sync + Send,
Expand description

Map f over items in parallel (when enabled), preserving order.