difference
difference — constructs a list of the differences between two
lists.
difference (listA, listB)
listAA list.
listBA list.
All elements in listA that are not in
listB.
Constructs a new list that contains all of the elements in
listA not contained in
listB as compared by the function
eq.
Gamma>a = 1;1Gamma>b = 2;2Gamma>c = 3;3Gamma>d = 4;4Gamma>e = 5;5Gamma>A = list (a, b, c);(1 2 3)Gamma>B = list (b, d, e, c);(2 4 5 3)Gamma>difference (A, B);(1)Gamma>difference (B, A);(4 5)Gamma>