Elm Exactly

Figureappendix-derived-forms-bindings

Figure 29, Derived forms of Value Bindings and Declarations, in ADerived Forms.

Value Bindings valbind\valbind

Derived Form\textnormal{Derived Form}Equivalent Form\textnormal{Equivalent Form}
var ⟨: ty⟩ atpat1⋯atpatn = exp⟨and valbind⟩\begin{array}{l} \var\ \opt{\kw{:}\ \ty}\ \atpat_1\cdots\atpat_n\ \kw{=}\ \expm\\ \quad\opt{\kw{and}\ \valbind} \end{array}var ⟨: ty⟩ = \atpat1⋯atpatn -> exp⟨and valbind⟩(n≥1)\begin{array}{l} \var\ \opt{\kw{:}\ \ty}\ \kw{=}\ \kw{\textbackslash}\atpat_1\cdots\atpat_n\ \kw{->}\ \expm\\ \quad\opt{\kw{and}\ \valbind} \qquad (n\geq 1) \end{array}function-binding

Declarations dec\dec

Derived Form\textnormal{Derived Form}Equivalent Form\textnormal{Equivalent Form}
let valbind1 ⋯ valbindn in exp\kw{let}\ \valbind_1\ \cdots\ \valbind_n\ \kw{in}\ \expmlet dec1 in ⋯ let deck in exp(see Section A.1)(n≥2)\begin{array}{l} \kw{let}\ \dec_1\ \kw{in}\ \cdots\ \kw{let}\ \dec_k\ \kw{in}\ \expm\\ \text{(see Section~A.1)} \qquad (n\geq 2) \end{array}let-grouping
Figure 29: Derived forms of Value Bindings and Declarations
Read it in its chapter·Permanent address: /standard/figures/appendix-derived-forms-bindings

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:appendix-derived-forms-bindings] 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.