Evaluate difference between list and set

Hi. I have a list of different text items. I want to make sure there are no duplicates. To do so i create a set of the list and check if len list is equal to len set.

If the two lengths are not equal i want to know the duplicate values (the values removed when creating the set.) Is there an easy way to do this?

How about this?
The input is a list of ints. The output is the set of numbers which have duplicates.

For large input, you’re probably better off creating a C# component which sorts the list and finds the duplicates directly.

1 Like