summaryrefslogtreecommitdiff
path: root/h3.hs
diff options
context:
space:
mode:
Diffstat (limited to 'h3.hs')
-rw-r--r--h3.hs7
1 files changed, 0 insertions, 7 deletions
diff --git a/h3.hs b/h3.hs
deleted file mode 100644
index 7c8604d..0000000
--- a/h3.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