Elm Exactly

Basis entryBasics.or

A value of Basics. Its type is in Section C.3 Basics.

Static basis

op stands for ↦ OTSTAT(op)&&, || and, or ↦ (Bool→Bool→Bool,v)\begin{array}{|clcl|}\hline \opv {\ }& \text{stands for} {\ }& \mapsto {\ }& \OTstat(\opv)\\\hline \kw{\&\&},\ \kw{||} {\ }& \href{/standard/basis/Basics/and}{\kw{and}},\ \href{/standard/basis/Basics/or}{\kw{or}} {\ }& \mapsto {\ }& (\tBool \rightarrow \tBool \rightarrow \tBool, \isv)\\\hline\end{array}
Figure 40: The Static Operator Table, OTSTAT\OTstat

Dynamic basis

opstands for ↦ OTDYN(op)arity&&, ||and, or ↦ basic value2\begin{array}{|clclc|}\hline \opv {\quad}& \text{stands for} {\ }& \mapsto {\ }& \OTdyn(\opv) {\qquad}& \arity\\\hline \kw{\&\&},\ \kw{||} {\quad}& \href{/standard/basis/Basics/and}{\kw{and}},\ \href{/standard/basis/Basics/or}{\kw{or}} {\ }& \mapsto {\ }& \text{basic value} {\qquad}& 2\\\hline\end{array}
Figure 46: The Dynamic Operator Table, OTDYN\OTdyn

Its APPLY

APPLY(or,v,v′) = {False}if v=v′=False = {True}otherwise\begin{array}{rcll} \APPLY(\kw{or},v,v') {\ }& = {\ }& \{\kw{False}\} {\quad}& \text{if}\ v=v'=\kw{False}\\ {\ }& = {\ }& \{\kw{True}\} {\quad}& \text{otherwise}\end{array}
Read it in its chapter·Permanent address: /standard/basis/Basics/or

Tests (1)

Discussions

Discuss this basis entry·Search the discussions on GitHub

Discussions are on GitHub; one about this basis entry has [b:Basics.or] 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.