Elm Exactly

Rule 143e-enc-true

EncodingEncτ(v)=j\Enc{\tau}(v)=j
EncBool(True)=true\frac{\begin{array}{c}\end{array}}{\begin{array}{c}\Enc{\tBool}(\kw{True})=\efftrue\end{array}}
(143)
Read it in its chapter·Permanent address: /standard/rules/e-enc-true
TeX source
\defnrule[r:e-enc-true]
  {}
  {\Enc{\tBool}(\kw{True})=\efftrue}

Tests (3)

  • elm / MinimalPipeTrueTest
    A pipe at `Bool`: the value the driver sends in comes back out.
  • elm / PortEchoBoolTest
    A `Bool` sent out through a port comes back unchanged through an incoming port, for each of two sample values.
  • elm / PortPipeScalarsTest
    JSON numbers, Booleans, strings and `null` received at `Float`, `Int`, `Bool`, `String` and `()` go out as they came.

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:e-enc-true] 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.