Elm Exactly

Figurestatic-basis-basics-ve1

Figure 38, Static VE\VE of ME0(Basics)\ME_0(\kw{Basics}): Constructors, Conversions, Comparison, Booleans and Integer Functions, in Section C.3 Basics.

var or con ↦ (σ,is)True, False ↦ (Bool,c)LT, EQ, GT ↦ (Order,c)toFloat ↦ (Int→Float,v)round, floor ↦ (Float→Int,v)ceiling, truncate ↦ (Float→Int,v)max, min ↦ (∀comparable. comparable→comparable  (∀comparable. →comparable,v)compare ↦ (∀comparable. comparable→comparable→Order,v)not ↦ (Bool→Bool,v)xor ↦ (Bool→Bool→Bool,v)modBy, remainderBy ↦ (Int→Int→Int,v)negate, abs ↦ (∀number. number→number,v)clamp ↦ (∀number. number→number→number  (∀number. →number,v) \begin{array}{|rcl|} \hline \var\ \text{or}\ \con {\ }& \mapsto {\ }& (\sigma, \is)\\ \hline \href{/standard/basis/Basics/Bool}{\kw{True}},\ \href{/standard/basis/Basics/Bool}{\kw{False}} {\ }& \mapsto {\ }& (\tBool, \isc)\\ \href{/standard/basis/Basics/Order}{\kw{LT}},\ \href{/standard/basis/Basics/Order}{\kw{EQ}},\ \href{/standard/basis/Basics/Order}{\kw{GT}} {\ }& \mapsto {\ }& (\sbtOrder, \isc)\\ \hline \htmlId{b-Basics-toFloat}{\href{/standard/basis/Basics/toFloat}{\kw{toFloat}}} {\ }& \mapsto {\ }& (\tInt \rightarrow \tFloat, \isv)\\ \htmlId{b-Basics-round}{\href{/standard/basis/Basics/round}{\kw{round}}},\ \htmlId{b-Basics-floor}{\href{/standard/basis/Basics/floor}{\kw{floor}}} {\ }& \mapsto {\ }& (\tFloat \rightarrow \tInt, \isv)\\ \htmlId{b-Basics-ceiling}{\href{/standard/basis/Basics/ceiling}{\kw{ceiling}}},\ \htmlId{b-Basics-truncate}{\href{/standard/basis/Basics/truncate}{\kw{truncate}}} {\ }& \mapsto {\ }& (\tFloat \rightarrow \tInt, \isv)\\ \hline \htmlId{b-Basics-max}{\href{/standard/basis/Basics/max}{\kw{max}}},\ \htmlId{b-Basics-min}{\href{/standard/basis/Basics/min}{\kw{min}}} {\ }& \mapsto {\ }& (\forall\mv{comparable}.\,\mv{comparable} \rightarrow \mv{comparable}\\ {\ }& {\ }& \phantom{(\forall\mv{comparable}.\,}{} \rightarrow \mv{comparable}, \isv)\\ \htmlId{b-Basics-compare}{\href{/standard/basis/Basics/compare}{\kw{compare}}} {\ }& \mapsto {\ }& (\forall\mv{comparable}.\,\mv{comparable} \rightarrow \mv{comparable} \rightarrow \sbtOrder, \isv)\\ \hline \htmlId{b-Basics-not}{\href{/standard/basis/Basics/not}{\kw{not}}} {\ }& \mapsto {\ }& (\tBool \rightarrow \tBool, \isv)\\ \htmlId{b-Basics-xor}{\href{/standard/basis/Basics/xor}{\kw{xor}}} {\ }& \mapsto {\ }& (\tBool \rightarrow \tBool \rightarrow \tBool, \isv)\\ \hline \htmlId{b-Basics-modBy}{\href{/standard/basis/Basics/modBy}{\kw{modBy}}},\ \htmlId{b-Basics-remainderBy}{\href{/standard/basis/Basics/remainderBy}{\kw{remainderBy}}} {\ }& \mapsto {\ }& (\tInt \rightarrow \tInt \rightarrow \tInt, \isv)\\ \htmlId{b-Basics-negate}{\href{/standard/basis/Basics/negate}{\kw{negate}}},\ \htmlId{b-Basics-abs}{\href{/standard/basis/Basics/abs}{\kw{abs}}} {\ }& \mapsto {\ }& (\forall\mv{number}.\,\mv{number} \rightarrow \mv{number}, \isv)\\ \htmlId{b-Basics-clamp}{\href{/standard/basis/Basics/clamp}{\kw{clamp}}} {\ }& \mapsto {\ }& (\forall\mv{number}.\,\mv{number} \rightarrow \mv{number} \rightarrow \mv{number}\\ {\ }& {\ }& \phantom{(\forall\mv{number}.\,}{} \rightarrow \mv{number}, \isv)\\ \hline \end{array}
Figure 38: Static VE\VE of ME0(Basics)\ME_0(\kw{Basics}): Constructors, Conversions, Comparison, Booleans and Integer Functions
Read it in its chapter·Permanent address: /standard/figures/static-basis-basics-ve1

Referred to from

Tests (0)

No test of the suite checks this figure yet.

Discussions

Discuss this figure·Search the discussions on GitHub

Discussions are on GitHub; one about this figure has [fig:static-basis-basics-ve1] 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.