unique
lib.lists.unique
Docs pulled from | This Revision | 17 minutes ago
Remove duplicate elements from the list
. O(n^2) complexity.
Inputs
list
-
Input list
Type
unique :: [a] -> [a]
Examples
lib.lists.unique
usage example
unique [ 3 2 3 4 ]
=> [ 3 2 4 ]