I understand this function signature:

update: Msg -> Model -> Model

to mean the function takes two inputs, a Msg and a Model and returns a Model. 
Correct?

But I don't understand this function signature:

view: Model -> Html Msg

It seems that the view function takes a Model and returns an Html. What exactly 
does the Msg mean in this context? Is it a type parameter to Html? Like 
Html<Msg> in Java?

Thanks.

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to