Function vrp_core::utils::map_reduce[][src]

pub fn map_reduce<T, FM, FR, FD, R>(
    source: &[T],
    map_op: FM,
    default_op: FD,
    reduce_op: FR
) -> R where
    T: Send + Sync,
    FM: Fn(&T) -> R + Sync + Send,
    FR: Fn(R, R) -> R + Sync + Send,
    FD: Fn() -> R + Sync + Send,
    R: Send

Performs map reduce operations in parallel.