pub fn setdiff1d<T: Element>(a: &Array<T>, b: &Array<T>) -> Array<T>Expand description
Sorted distinct values of a that are not in b, like np.setdiff1d(a, b).
use rustnum as np;
let a = np::array![1, 2, 3, 2, 4, 1];
let b = np::array![3, 4, 5, 6];
assert_eq!(np::setdiff1d(&a, &b).to_vec(), vec![1, 2]);