2012-08-26 nub Haskell Haskell : nubremoves duplicates elements from a list. Main > nub [1,2,3,2,1] [1,2,3] Main > nub "AAAABBBBBBBBBBBCCCC" "ABC"