Rule 32s-atpat-wild
Atomic Patterns
(32)
TeX source
\defnrule[r:s-atpat-wild]
{}
{\jdg{C}{\kw{\_}}{(\emptymap, \tau)}}Tests (2)
- elm / CaseBranchSelectionTestA `case` tries its branches in order: a branch whose pattern fails passes the value on, and the first that matches is evaluated with its pattern's bindings.
- elm / MinimalCaseNextRuleTestA value the first rule of a case does not match goes to the next rule.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:s-atpat-wild] 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.