This list comparison tool allows you to compare two lists (arrays) to be able you analyze the difference between the two lists. The program receives lists of the type string or number and after starting the comparison it is possible to sort the results.
Input data structure
Input data type
Handle data as...
Output data separetad...
A diff B
Values in A only
B diff A
Values in B only
A ∩ B
Intersection of values between A and B
A ∪ B
Union of values between A and B
A △ B
Symmetric difference between A and B
How does the Compare Two Lists tool work?
It will function normally according to the rules of the sets, in Mathematics. However, in this tool, you can also choose the list option, so that it is possible to work with repeated values. The following operations are performed:
A minus B
Returns the values that are present only in list A.
B minus A
Returns the values that are present only in list B.
A intersection B
They are represented by the values that occur simultaneously in the two lists.
A union B
They are represented by all the values present in both lists.
The symmetric difference of two sets is the set of elements that are in one of the sets, but not at its intersection.