If you're going to refer to items by ID a lot, you should probably use a dictionary keyed on ID. Assuming items is a record with an id field:
{ model |
items = model.items |> Dict.insert updatedItem.id updatedItem }
--
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.
