Derived formif
Tests (6)
- elm / BoolAndTestThe `&&` operator gives `True` only when both operands are `True`, checked over all four combinations.
- elm / BoolOrTestThe `||` operator gives `False` only when both operands are `False`, checked over all four combinations.
- elm / InfixIfExtendsRightTestAn `if` extends as far right as it can: its `else` branch takes in a chain after it.
- elm / InfixLastOperandAnyExprTestThe last operand of a chain may be any expression: an `if` or a lambda.
- elm-core / EqualityBoolIfTestThe result of `==` and `/=` on `Bool` operands drives an `if` expression correctly.
- elm-core / NotEqualBoolIfTestThe result of `/=` on two `Bool` literals is used as the condition of an `if`, for all four combinations of operands; each logs `"yes"` exactly when the operands differ.
Discussions
Discuss this derived form·Search the discussions on GitHub
Discussions are on GitHub; one about this derived form has [df:if] 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.