Rule 157e-dec-true
Decoding
(157)
TeX source
\defnrule[r:e-dec-true]
{}
{\Dec{\tBool}(\efftrue)=\kw{True}}Tests (4)
- elm / FlagsRecordTestA `Platform.worker` whose flags are a record of an `Int`, a `String` and a `Bool` receives the decoded record in `init`.
- elm / MinimalPipeTrueTestA pipe at `Bool`: the value the driver sends in comes back out.
- elm / PortEchoBoolTestA `Bool` sent out through a port comes back unchanged through an incoming port, for each of two sample values.
- elm / PortPipeScalarsTestJSON 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-dec-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.