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

3 lines
59 B
Haskell
Raw Normal View History

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