跳至內容

99 個 Elm 難題/第 15 題/解決方案

來自維基文庫,開放世界裡的開放書籍

解決方案 1:使用 List.foldr

repeatElements n = List.foldr (\a b -> List.repeat n a ++ b) []
華夏公益教科書