Function vrp_core::utils::create_range_sampling_iter

source ยท
pub fn create_range_sampling_iter<I>(
    iterator: I,
    sample_size: usize,
    random: &(dyn Random + Send + Sync),
) -> impl Iterator<Item = <I as Iterator>::Item>
where I: Iterator,
Expand description

Returns a new iterator which samples some range from existing one.