99-haskell-problems/Problems 11-20/problem_15.hs

2 lines
68 B
Haskell

repli :: [a] -> Int -> [a]
repli x n = concat $ [replicate n] <*> x