summaryrefslogtreecommitdiff
path: root/2021/12.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2021-12-15 19:41:19 +0100
committerTom Smeding <tom@tomsmeding.com>2021-12-15 19:41:19 +0100
commit8279401e0b85ae707542ad5f919ecacb43b5f914 (patch)
treebf38af498f73e9de0290152b19a6740c6b80765c /2021/12.hs
parent026fbe8686417faa3e13e01dfd738631813d6ecb (diff)
uniq in Util
Diffstat (limited to '2021/12.hs')
-rw-r--r--2021/12.hs5
1 files changed, 0 insertions, 5 deletions
diff --git a/2021/12.hs b/2021/12.hs
index 03b2d77..ba902dd 100644
--- a/2021/12.hs
+++ b/2021/12.hs
@@ -12,11 +12,6 @@ import Input
import Util
-uniq :: Eq a => [a] -> [a]
-uniq (x : y : xs) | x == y = uniq (y : xs)
- | otherwise = x : uniq (y : xs)
-uniq l = l
-
main :: IO ()
main = do
inp <- getInput 12