summaryrefslogtreecommitdiff
path: root/h16.hs
diff options
context:
space:
mode:
Diffstat (limited to 'h16.hs')
-rw-r--r--h16.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/h16.hs b/h16.hs
new file mode 100644
index 0000000..68978a7
--- /dev/null
+++ b/h16.hs
@@ -0,0 +1,2 @@
+dropEvery :: [a] -> Int -> [a]
+dropEvery xs c = [x| (x,y) <- (zip xs [1..]), y `mod` c /= 0 ]