summaryrefslogtreecommitdiff
path: root/h20.hs
diff options
context:
space:
mode:
Diffstat (limited to 'h20.hs')
-rw-r--r--h20.hs7
1 files changed, 0 insertions, 7 deletions
diff --git a/h20.hs b/h20.hs
deleted file mode 100644
index 670edf6..0000000
--- a/h20.hs
+++ /dev/null
@@ -1,7 +0,0 @@
-import Control.Arrow
-removeAt :: Int -> [a] -> [a]
-removeAt n xs = (take (n-1) xs) ++ (drop n xs)
-
-removeAtT :: Int -> [a] -> (a,[a])
-removeAtT 1 (x:xs) = (x,xs)
-removeAtT n (x:xs) = (fst &&& ((x:).snd)) $ removeAtT (n-1) xs