I wrote a function that removes duplicate values from a list, as follows:
test_ftn :: Eq a => [a] -> [a] test_ftn [] = [] test_ftn [x] = [x] test_ftn (x