summaryrefslogtreecommitdiff
path: root/h19.hs
diff options
context:
space:
mode:
Diffstat (limited to 'h19.hs')
-rw-r--r--h19.hs6
1 files changed, 0 insertions, 6 deletions
diff --git a/h19.hs b/h19.hs
deleted file mode 100644
index 45c5a07..0000000
--- a/h19.hs
+++ /dev/null
@@ -1,6 +0,0 @@
-rotate :: [a] -> Int -> [a]
-rotate xs c
- | c < 0 = rotate xs (c + (length xs))
- | otherwise = (drop (c `mod` (length xs)) xs ) ++ (take (c `mod` (length xs)) xs)
-
-rotate' xs c = take (length xs) $ drop (length xs + c) $ cycle xs