Elm Exactly

Rule 159e-dec-string

DecodingDecτ(j)=v\Dec{\tau}(j)=v
j∈StrDecString(j)=j\frac{\begin{array}{c}j\in\effStr\end{array}}{\begin{array}{c}\Dec{\tString}(j)=j\end{array}}
(159)
Read it in its chapter·Permanent address: /standard/rules/e-dec-string
TeX source
\defnrule[r:e-dec-string]
  {j\in\effStr}
  {\Dec{\tString}(j)=j}

Tests (6)

  • elm / MinimalPipeStringTest
    A pipe at `String`: the value the driver sends in comes back out.
  • elm / PortEchoArrayStringFlagsTest
    An `Array String` sent out through a port comes back unchanged through an incoming port, for each of two sample values received as flags.
  • elm / PortEchoStringTest
    A `String` sent out through a port comes back unchanged through an incoming port, for each of six sample values.
  • elm / PortPipeRecordTest
    A JSON object received at a record type goes out with exactly the record's fields.
  • elm / PortPipeScalarsTest
    JSON numbers, Booleans, strings and `null` received at `Float`, `Int`, `Bool`, `String` and `()` go out as they came.
  • elm / PortPipeTupleTest
    A JSON array received at a tuple type goes out with as many elements as the tuple has.

Discussions

Discuss this rule·Search the discussions on GitHub

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