Elm Language Creating a list by repeating a value


Example

> List.repeat 3 "abc"
["abc","abc","abc"] : List String

You can give List.repeat any value:

> List.repeat 2 {a = 1, b = (2,True)}
[{a = 1, b = (2,True)}, {a = 1, b = (2,True)}]
  : List {a : Int, b : (Int, Bool)}