init = 0StartApp.start
{ init = init
...
}init =
always 0StartApp.start
{ init = init ()
...
}A function that takes no arguments is a constant.
type alias Model = Int
init : Model
init = 17
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It is important to distinguish a function that takes no input from a function that ignores its input. "always" gives the latter, and the former is just a constant.
--