I need a function that could be called uniqueBy that would remove all elements in a list of tuples that have the same snd value, without keeping even one of them as nubBy would.
For example,
uniqueBy [(1,1),(2,1)]
should return [], whereas
uniqueBy [(1,1),(1,1),(1,2)]
would return [(1,2)].
Sadly this function uniqueBy does not exist and I can't seem to find an alternative function or a way to implement it myself, although I'm sure there has to be an easy way.