Thank you OvermindDL1, that was helpful.
I like your first idea of destructing the tuple. That looks a lot better. I like how your second example looks, is so short and simple which is what I was looking for. But I believe that it implies that the inner component needs to know about the outer components' types. Right? I looked through https://github.com/debois/elm-mdl but didn't find an example of a mapper. I only found in the https://github.com/debois/elm-mdl/blob/66a1f2c10cb3850686eb610174710e9fcf176425/src/Material/Layout.elm file but the f parameter isn't used anywhere. Let me know if you think of any other examples. Thanks {-| Component update for Parts. -} update' : (Msg -> msg) -> Msg -> Model -> Maybe (Model, Cmd msg) update' f action model = -- 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.
