Elm Exactly

Basis entryList

The list type and its constructors, in scope in every module. Its type is in Section C.2 The Module Environment.

Static basis

E0=({},TE0,VE0),TE0={List↦(List,VE0)}, E_0 = (\emptymap, \TE_0, \VE_0), \qquad \TE_0 = \{\href{/standard/basis/List}{\kw{List}} \mapsto (\tList, \VE_0)\},
VE0={[]↦(∀a. a List,c), ::↦(∀a. a→a List→a List,c)}. \VE_0 = \{\href{/standard/basis/List}{\kw{[]}} \mapsto (\forall\mv{a}.\,\mv{a}\,\tList, \isc),\ \href{/standard/basis/List}{\kw{::}} \mapsto (\forall\mv{a}.\,\mv{a} \rightarrow \mv{a}\,\tList \rightarrow \mv{a}\,\tList, \isc)\}.
op stands for ↦ OTSTAT(op)::∗ :: ↦ (∀a. a→a List→a List,c)\begin{array}{|clcl|}\hline \opv {\ }& \text{stands for} {\ }& \mapsto {\ }& \OTstat(\opv)\\\hline \kw{::}^{*} {\ }& \href{/standard/basis/List}{\kw{::}} {\ }& \mapsto {\ }& (\forall\mv{a}.\,\mv{a} \rightarrow \mv{a}\,\tList \rightarrow \mv{a}\,\tList, \isc)\\\hline\end{array}
Figure 40: The Static Operator Table, OTSTAT\OTstat

Dynamic basis

opstands for ↦ OTDYN(op)arity:::: ↦ ::2\begin{array}{|clclc|}\hline \opv {\quad}& \text{stands for} {\ }& \mapsto {\ }& \OTdyn(\opv) {\qquad}& \arity\\\hline \kw{::} {\quad}& \href{/standard/basis/List}{\kw{::}} {\ }& \mapsto {\ }& \kw{::} {\qquad}& 2\\\hline\end{array}
Figure 46: The Dynamic Operator Table, OTDYN\OTdyn
Read it in its chapter·Permanent address: /standard/basis/List

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:List] 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.