Skip to main content

vec_intersection

Function vec_intersection 

Source
pub fn vec_intersection<T: PartialEq + Clone>(a: &[T], b: &[T]) -> Vec<T>
Expand description

Return elements in both a and b (order-preserving, keeps first occurrence).