🌈 搜索
📅  最后修改于: 2022-03-11 14:56:32.109000             🧑  作者: Mango
f :: Int -> [Int] -> [Int] f n arr = concatMap (\num -> replicate n num) arr