Skip to main content

map

Function map 

Source
pub fn map<T: Sync, R: Send>(items: &[T], f: impl Fn(&T) -> R + Sync) -> Vec<R>
Expand description

items.iter().map(f).collect(), with the calls to f run on several threads (native).