I am trying to make a function in haskell, where a list enters it by parameter and returns or shows the list but that the duplicates are eliminated, that is to say:
Enter [1,2,3,4,1,2]
and show [1,2,3,4]
. It can also be with characters not necessarily with numbers.
Something like this:
deleteDuplicate :: [a] -> [a]