Rule 38s-atpat-nil
Atomic Patterns
(38)
Comments
As in rule (7), is arbitrary.
TeX source
\defnrule[r:s-atpat-nil]
{}
{\jdg{C}{\kw{[}\ \kw{]}}{(\emptymap, \tau\,\tList)}}Tests (2)
- elm / MinimalNilPatternTestThe empty-list pattern matches the empty list.
- elm / TypeMismatchListPatternTestMatching a number against a list pattern is rejected with a TYPE MISMATCH.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:s-atpat-nil] 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.