Case:
a = [(1,2),(2,3),(4,5),(1,6),(1,7)] b = [(5,2),(6,3),(4,5),(6,8),(1,9)]
How can i remove duplicates by first tuple item?
Result for a would be:
[(1,2),(2,3),(4,5)]
Result for b would be:
[(5,2),(6,3),(4,5),(1,9)]
How can i merge both without duplicates?: Result would be:
[(1,2),(2,3),(4,5),(5,2),(6,3)]
How can i get the intersection of both?: Result would be:
[(1,2),(4,5)]
Is this in an easy way possible?
Best Regards Chris