Function vrp_core::utils::map_reduce
source · pub fn map_reduce<T, FM, FR, FD, R>(
source: &[T],
map_op: FM,
default_op: FD,
reduce_op: FR
) -> Rwhere
T: Send + Sync,
FM: Fn(&T) -> R + Sync + Send,
FR: Fn(R, R) -> R + Sync + Send,
FD: Fn() -> R + Sync + Send,
R: Send,Expand description
Performs map reduce operations in parallel.