List and Dict are good for different things:
If most of the interaction with the collection is getting and setting, adding 
and deleting items 1 at a time: go with Dict.
If most of the interaction is going over the list, including sorting, 
rendering, counting items etc: then go with List.

Todo's in the example at more or less in the middle. List is simpler, so that 
would most sense.

Not sure what you mean with:
" Maybe.map doesn't appear useful as record updates aren't compose-able?)" 

I think you can do something like:

    { model | myCollection = Dict.update key (Maybe.map <| itemUpdate newText) 
model.myCollection }

-- 
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.

Reply via email to