Tests (7)
- elm / AppendTypeSplitTest`++` gives the right result on `String`s and `List`s, including empty operands, long strings, nested appends, and a function whose type is `appendable`.
- elm / InfixAssocRightConsAppendTest`::` and `++` (both precedence 5) associate to the right, so `"a" ++ "b" :: [ "c" ]` does not type.
- elm / InfixPrecAppendOverEqTest`++` (precedence 5) binds more tightly than `==` (precedence 4).
- elm-core / ListAppendTestThe `++` operator joins two lists in order, and appending `[]` on the right leaves a list unchanged.
- elm-core / ListConcatTest`++` joins lists in order, alone and in a chain of three, and appending to the empty list `[]` gives the other list.
- elm-core / StringConcatContentTestA chain of twenty `++` operations and 100 nested `++` operations built by recursion both produce the right text.
- elm-core / StringConcatTest`++` joins strings.
Discussions
Discuss this basis entry·Search the discussions on GitHub
Discussions are on GitHub; one about this basis entry has [b:Basics.append] 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.