datafusion_common::utils

Function set_difference

Source
pub fn set_difference<T: Borrow<usize>, S: Borrow<usize>>(
    first: impl IntoIterator<Item = T>,
    second: impl IntoIterator<Item = S>,
) -> Vec<usize>
Expand description

Calculates the set difference between sequences first and second, returning the result as a Vec. Preserves the ordering of first.