Tests (6)
- elm / InfixPrecAddOverConsTest`+` (precedence 6) binds more tightly than `::` (precedence 5).
- elm / InfixPrecApplicationFirstTestApplication binds more tightly than any operator.
- elm / InfixPrecMulOverAddTest`*` (precedence 7) binds more tightly than `+` (precedence 6).
- elm-core / FloatAddTest`+` on `Float` literals, including negative operands and a sum of zero.
- elm-core / IntAddTestInt addition gives the right sum for two positives, a positive and its negation, and two negatives.
- elm-core / StandardA40IntOverflowTestInt `+`, `-` and `*` give an Int, never an infinity or NaN, however large the exact result.
Discussions
Discuss this basis entry·Search the discussions on GitHub
Discussions are on GitHub; one about this basis entry has [b:Basics.add] 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.