You could define emptyLine somewhere in your code and just do Maybe.withDefault emptyLine (Dict.get name model.lines)
Oh yes, that's great! Adopted! Thanks for the others pointers. I obviously still have quite a lot to discover in the language and its ecosystem! (although I was already aware of the |> notation, which is very convenient!) Cheers, Matthieu -- 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.
