The comparison page you refer to is more a high-level comparison between javascript and elm syntax. It does not look like it is intended to be in-depth.
I agree it would be useful to have some docs at some time summing up the pros and cons of List vs Array vs Set vs Dict. But I am not sure that the "From javascript" place would be the right place. PS: Getting an item from index in a List in Elm is quite straightforward getFromList : Int -> List a -> Maybe a getFromList index someList = List.head <| List.drop index someList The main consideration vs Array or Dict (I think) is performance when the lists get larger. Please note that this will return a Maybe type (same as Array, and Dict BTW) -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
