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

3 lines
68 B
Haskell
Raw Normal View History

2024-05-24 18:50:16 -05:00
repli :: [a] -> Int -> [a]
repli x n = concat $ [replicate n] <*> x