summaryrefslogtreecommitdiff
path: root/11-20/15.hs
diff options
context:
space:
mode:
Diffstat (limited to '11-20/15.hs')
-rw-r--r--11-20/15.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/11-20/15.hs b/11-20/15.hs
new file mode 100644
index 0000000..f11d61c
--- /dev/null
+++ b/11-20/15.hs
@@ -0,0 +1,7 @@
+repli :: [a] -> Int -> [a]
+
+repli l n = rep l n
+ where rep [] i = []
+ rep (x:xs) i
+ | i > 0 = x:(rep (x:xs) (i - 1))
+ | otherwise = rep xs n