Elm Exactly

Rule 71d-atexp-nil

Atomic ExpressionsE⊢atexp⇒v\jdg{E}{\atexp}{v}
E⊢[ ]⇒[]\frac{\begin{array}{c}\end{array}}{\begin{array}{c}\jdg{E}{\kw{[}\ \kw{]}}{\kw{[]}}\end{array}}
(71)
Read it in its chapter·Permanent address: /standard/rules/d-atexp-nil
TeX source
\defnrule[r:d-atexp-nil]
  {}
  {\jdg{E}{\kw{[}\ \kw{]}}{\kw{[]}}}

Tests (3)

  • elm / ListConsTest
    The cons operator `::` builds one-, two- and three-element lists onto `[]`.
  • elm / ListLiteralTest
    List literals of one, three and five Int elements log their elements in order.
  • elm / MinimalEmptyListTest
    The empty list is a value.

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:d-atexp-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.