summaryrefslogtreecommitdiff
path: root/h1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'h1.hs')
-rw-r--r--h1.hs9
1 files changed, 0 insertions, 9 deletions
diff --git a/h1.hs b/h1.hs
deleted file mode 100644
index f0216c2..0000000
--- a/h1.hs
+++ /dev/null
@@ -1,9 +0,0 @@
-
-myLast :: [a] -> a
-myLast [] = error "Empty List"
-myLast [x] = x
-myLast (x:xs) = myLast xs
-
-myLast' = foldl1 (flip const)
-
-myLast'' = foldl1 (curry snd)