says i have a list of strings:
A, B, C, D
Then the following list of lines
B, C, D
I want to know which items are in the first list, which are not in the second list, so the result will be A
I do not know what the extension method is called. I know that I can use concat, union, intersect for similar list comparisons, but I just donβt know the name for this particular task.
Adding, I'm interested in duplicates, so if the first list is:
A, A, A, B, C, D
and the second list
B, C, D
I want to receive
A, A, A
Thank!
source
share