diff options
Diffstat (limited to 'Utils.hs')
-rw-r--r-- | Utils.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Utils.hs b/Utils.hs new file mode 100644 index 0000000..65bb651 --- /dev/null +++ b/Utils.hs @@ -0,0 +1,7 @@ +module Utils where + + +uniq :: Eq a => [a] -> [a] +uniq (a:b:cs) | a == b = uniq (b:cs) + | otherwise = a : uniq (b:cs) +uniq l = l |