If I have a list of tuples such as [(l,r):ds], when l == r how can I check whether any pair in this list is equal to each other and for other insta
[(l,r):ds]
l == r