Elm Exactly

Figureappendix-derived-forms-patterns

Figure 28, Derived forms of Patterns and Pattern Rows, in ADerived Forms.

Atomic Patterns atpat\atpat

Derived Form\textnormal{Derived Form}Equivalent Form\textnormal{Equivalent Form}
[pat1, ⋯, patn]\kw{[}\pat_1\kw{,}\ \cdots\kw{,}\ \pat_n\kw{]}(pat1 :: (pat2 :: ⋯ (patn :: [ ])⋯))(n≥1)\kw{(}\pat_1\ \kw{::}\ \kw{(}\pat_2\ \kw{::}\ \cdots\ \kw{(}\pat_n\ \kw{::}\ \kw{[ ]}\kw{)}\cdots\kw{)}\kw{)} \quad (n\geq 1)list-pattern

Pattern Rows patrow\patrow

Derived Form\textnormal{Derived Form}Equivalent Form\textnormal{Equivalent Form}
lab ⟨, patrow⟩\lab\ \opt{\kw{,}\ \patrow}lab = var ⟨, patrow⟩(var spelt as lab)\lab\ \kw{=}\ \var\ \opt{\kw{,}\ \patrow} \qquad (\text{$\var$ spelt as $\lab$})pattern-row-label
Figure 28: Derived forms of Patterns and Pattern Rows
Read it in its chapter·Permanent address: /standard/figures/appendix-derived-forms-patterns

Referred to from

Tests (0)

No test of the suite checks this figure yet.

Discussions

Discuss this figure·Search the discussions on GitHub

Discussions are on GitHub; one about this figure has [fig:appendix-derived-forms-patterns] 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.