summaryrefslogtreecommitdiff
path: root/p3.hs
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-03-17 11:05:29 +0800
committerJoe Zhao <ztuowen@gmail.com>2015-03-17 11:05:29 +0800
commita9ee47b61558efe09aee23f5671aabd0c3747e8a (patch)
tree52426053545a54514d39300e2117bdda14a9b1ef /p3.hs
parent11a5fd38018498a7b7feb0e392ac36003b0440ac (diff)
downloadh99-a9ee47b61558efe09aee23f5671aabd0c3747e8a.tar.gz
h99-a9ee47b61558efe09aee23f5671aabd0c3747e8a.tar.bz2
h99-a9ee47b61558efe09aee23f5671aabd0c3747e8a.zip
p -> h
Diffstat (limited to 'p3.hs')
-rw-r--r--p3.hs7
1 files changed, 0 insertions, 7 deletions
diff --git a/p3.hs b/p3.hs
deleted file mode 100644
index 7c8604d..0000000
--- a/p3.hs
+++ /dev/null
@@ -1,7 +0,0 @@
-elementAt :: [a] -> Integer -> Maybe a
-
-elementAt [] _ = Nothing
-elementAt (x:xs) 1 = Just x
-elementAt (x:xs) n
- | n>1 = elementAt xs (n-1)
- | otherwise = Nothing