You can also extract getting the model property in a separate function, so that you don't have to duplicate it completely.
On Mon, 21 Nov 2016 at 23:59 'Rupert Smith' via Elm Discuss < [email protected]> wrote: > On Monday, November 21, 2016 at 6:27:40 PM UTC, Rex van der Spuy wrote: > > Is it possible to pass model properties as message arguments and use those > arguments to construct a new model? > > > Could use a Dict instead of properties? > > -- > 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. > -- 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.
