Elm Exactly

Basis entryPlatform.worker

A value of Platform. Its type is in Section C.5 Debugging, Programs and Effects.

Static basis

worker ↦ (∀flags model msg.  {init↦flags→(model,msg Cmd)Tuple2,  {update↦msg→model→(model,msg Cmd)Tuple2,  {subscriptions↦model→msg Sub}  →(flags,model,msg)Program, v)\begin{array}{|rcl|}\hline \href{/standard/basis/Platform/worker}{\kw{worker}} {\ }& \mapsto {\ }& (\forall\mv{flags}\,\mv{model}\,\mv{msg}.\\ {\ }& {\ }& \quad\{\kw{init} \mapsto \mv{flags} \rightarrow (\mv{model}, \mv{msg}\,\sbtCmd)\tTuple{2},\\ {\ }& {\ }& \quad\phantom{\{}\kw{update} \mapsto \mv{msg} \rightarrow \mv{model} \rightarrow (\mv{model}, \mv{msg}\,\sbtCmd)\tTuple{2},\\ {\ }& {\ }& \quad\phantom{\{}\kw{subscriptions} \mapsto \mv{model} \rightarrow \mv{msg}\,\sbtSub\}\\ {\ }& {\ }& \quad{} \rightarrow (\mv{flags}, \mv{model}, \mv{msg})\sbtProgram,\ \isv)\\\hline\end{array}
Figure 42: Static Interfaces of Debug and the Platform Modules

Dynamic basis

var or con ↦ varityworker ↦ basic value1\begin{array}{|rclc|}\hline \var\ \text{or}\ \con {\ }& \mapsto {\ }& v {\qquad}& \arity\\\hline \href{/standard/basis/Platform/worker}{\kw{worker}} {\ }& \mapsto {\ }& \text{basic value} {\qquad}& 1\\\hline\end{array}
Figure 47: Dynamic VE\VE of the Other Modules of ME0\ME_0
Read it in its chapter·Permanent address: /standard/basis/Platform/worker

Tests (0)

No test of the suite checks this entry of the basis yet.

Discussions

Discuss this basis entry·Search the discussions on GitHub

Discussions are on GitHub; one about this basis entry has [b:Platform.worker] in its title.

A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.