Stepping inside the elm runtime
If you have ever wondered how the elm runtime works you may have traced the function calls required to create an application (for example elm/core:Platform.worker or elm/browser:Browser.element). If you do so you will end up at elm/core:Elm.Kernel.Platform.initialize.
The initialize function in the elm/core package is defined like this:
function _Platform_initialize(flagDecoder, args, init, update, subscriptions, stepperBuilder) { // ... } flagDecoder sounds a bit scary but we ignore it for now. args is the javascript object you pass to init: Elm.
[Read More]