From a9abc1da41b56edbed00081800382e854d6698d0 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Tue, 31 Mar 2015 23:41:55 +0800 Subject: rename to H**, +31 +32 +33 +34 +35 +36 --- h8.hs | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 h8.hs (limited to 'h8.hs') diff --git a/h8.hs b/h8.hs deleted file mode 100644 index 219bc93..0000000 --- a/h8.hs +++ /dev/null @@ -1,12 +0,0 @@ -compress :: (Eq a) => [a] -> [a] -compress = foldr elim [] - where elim e [] = [e] - elim e ns - | e == head ns = ns - | otherwise = e:ns - -compress' xs = foldr f (const []) xs Nothing - where - f x r a@(Just q) - | x == q = r a - f x r _ = x : r (Just x) -- cgit v1.2.3-70-g09d2