Function array_tool::uniques [] [src]

pub fn uniques<T: PartialEq + Clone>(a: Vec<T>, b: Vec<T>) -> Vec<Vec<T>>

Get uniques from two vectors

Example

use array_tool::uniques;

uniques(vec![1,2,3,4,5], vec![2,5,6,7,8]);

Output

vec![vec![1,3,4], vec![6,7,8]]