How to compare list of lists (with N items) for items that are repeated, but only in different lists
<p>I'm coming back to programming after years off and am having trouble wrapping my head around this problem. The user is defining the Classification set amount but the RasterValue is list is of length N</p>

<p>Example:
    ClassificationSet = (1, 2, 3, 4, 5, 6) #defined by user <br>
    RasterVal = () #length = N</p>

<p>I store items into RasterVal using ClassificationSet as an index:
    RasterVal(ClassificationSet).add(Imported Value)</p>

<pre><code>RasterVal(1) = 22,23,24,25,23,23,22
RasterVal(2) = 22,30,31,32,30,30
RasterVal(3) = 31
</code></pre>

<p>which is: RasterVal([],[22,23,24,25,23,23,22], [22,30,31,32,30,30], [31])</p>

<p>I want to list values that are repeated but only if they are repeated in different sets, not the same one.</p>

<p>Output should be:
    RepeatSet = 22, 31</p>

<p>Thank you very much for any help. I've been able to compare the sets but it lists repeated values even if they appear in the same set list.</p>
