Function cop::union1[][src]

pub fn union1<T: Eq>(v1: &mut Vec<T>, v2: Vec<T>)

Remove all elements of v2 from v1 and append v2 to the result.

let mut v1 = vec![0, 2, 3, 3, 4, 4];
let v2 = vec![1, 2, 2, 4, 5];
union1(&mut v1, v2);
assert_eq!(v1, vec![0, 3, 3, 1, 2, 2, 4, 5])