Rule 92d-valbind-var
Value Bindings
(92)
TeX source
\defnrule[r:d-valbind-var]
{\jdg{E}{\expm}{v}\premsep\opt{\jdg{E}{\valbind}{\VE}}}
{\jdg{E}{\var\ \kw{=}\ \expm\ \opt{\kw{and}\ \valbind}}{\{\var\mapsto v\}\opt{+\,\VE}}}Tests (2)
- elm / LetValueBindingTestA `let` binding `x = e` binds `x` to the value of `e`, evaluated once.
- elm / MinimalLetTestA let expression with one definition.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:d-valbind-var] 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.