Rule 100d-atpat-unit
Atomic Patterns
(100)
Comments
TeX source
\defnrule[r:d-atpat-unit]
{}
{\jdgv{E}{()}{\kw{()}}{\emptymap}}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 / MinimalUnitPatternTestThe unit pattern matches the unit 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-atpat-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.