Elm Exactly

Rule 104d-atpat-record

Atomic PatternsE,v⊢atpat⇒VE/FAIL\jdgv{E}{v}{\atpat}{\VE/\FAIL}
v=r⟨E,r⊢patrow⇒VE⟩E,v⊢{ ⟨patrow⟩ }⇒{}⟨+ VE⟩\frac{\begin{array}{c}v=r\premsep\opt{\jdgv{E}{r}{\patrow}{\VE}}\end{array}}{\begin{array}{c}\jdgv{E}{v}{\kw{\kwlb}\ \opt{\patrow}\ \kw{\kwrb}}{\emptymap\opt{+\,\VE}}\end{array}}
(104)
Read it in its chapter·Permanent address: /standard/rules/d-atpat-record

Referred to from

TeX source
\defnrule[r:d-atpat-record]
  {v=r\premsep\opt{\jdgv{E}{r}{\patrow}{\VE}}}
  {\jdgv{E}{v}{\kw{\kwlb}\ \opt{\patrow}\ \kw{\kwrb}}{\emptymap\opt{+\,\VE}}}

Tests (33)

Discussions

Discuss this rule·Search the discussions on GitHub

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