Is there a nubBy analogy for unique in Haskell?

I need a function that would work like uniqueBy in order to remove all elements in a list of tuples that have the same snd value. 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 that there has to be an easy way.

Read more here:

Content Attribution

This content was originally published by TobiasNeumeier at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: