Elm Language Lists and Iteration Reversing a list


Example

Note: this is not very efficient due to the nature of List (see Remarks below). It will be better to construct the list the "right" way from the beginning than to construct it and then reverse it.

> List.reverse [1,3,5,7,9]
[9,7,5,3,1] : List number