1
0

HackerRank FP question

This commit is contained in:
2023-11-01 19:41:13 -04:00
parent 2e328f6075
commit 9bf196a8f9

View File

@@ -0,0 +1,4 @@
-- https://www.hackerrank.com/challenges/fp-list-replication/
f :: Int -> [Int] -> [Int]
f s = concatMap (replicate s)