Elm LanguageLists and Iteration


Remarks

The List (linked list) shines in sequential access:

  • accessing the first element
  • prepending to the front of the list
  • deleting from the front of the list

On the other hand, it's not ideal for random access (ie. getting nth element) and traversation in reverse order, and you might have better luck (and performance) with the Array data structure.