411 REFERENCE · Wikibooks
99 Elm Problems/Problem 15/Solutions
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Solution 1: Using List.foldr
repeatElements n = List.foldr (\a b -> List.repeat n a ++ b) []