Rule 69d-atexp-unit
Atomic Expressions
(69)
TeX source
\defnrule[r:d-atexp-unit]
{}
{\jdg{E}{\kw{()}}{()}}Tests (3)
- elm / EmbeddedUnitCaptureTestA local function returns a tuple containing a unit value bound in the enclosing `let`, and the tuple is destructured by a pattern.
- elm / MinimalUnitTestThe unit expression has the unit type and value.
- elm / StandardCoreEvaluationExamplesTestSmall programs for rules of the dynamic semantics of the Core that other tests reach only in passing, and examples from the Comments of A Standard Definition of Elm?, Chapter 6.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:d-atexp-unit] 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.