Elm Exactly

Restrictioncore-irredundancy

Stated in Section 4.11 Further Restrictions, under Irredundancy.

Irredundancy. In a match pat1 -> exp1 ; ⋯ ; patn -> expn\pat_1\ \kw{->}\ \expm_1\ \kw{;}\ \cdots\ \kw{;}\ \pat_n\ \kw{->}\ \expm_n whose patterns elaborate with type τ\tau, each patj\pat_j must cover some inhabitant of τ\tau that no pati\pat_i with i<ji < j covers.

Read it in its chapter·Permanent address: /standard/restrictions/core-irredundancy

Tests (4)

Discussions

Discuss this restriction·Search the discussions on GitHub

Discussions are on GitHub; one about this restriction has [res:core-irredundancy] 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.