1
0
Fork 0

HackerRank FP question

main
Bill Ewanick 2023-11-01 19:41:13 -04:00
parent 2e328f6075
commit 9bf196a8f9
1 changed files with 4 additions and 0 deletions

View File

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