HackerRank FP question
This commit is contained in:
4
src/hackerRank/functional1.hs
Normal file
4
src/hackerRank/functional1.hs
Normal file
@@ -0,0 +1,4 @@
|
||||
-- https://www.hackerrank.com/challenges/fp-list-replication/
|
||||
|
||||
f :: Int -> [Int] -> [Int]
|
||||
f s = concatMap (replicate s)
|
||||
Reference in New Issue
Block a user