aboutsummaryrefslogtreecommitdiff
path: root/Utils.hs
blob: 65bb651cc08fd11fdcf9d2ead4f8e0c06d0530c1 (plain)
1
2
3
4
5
6
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