Basis entryChar.fromCode
Tests (3)
- elm-core / CharAstralCodeTest`Char.fromCode` and `Char.toCode` round-trip Unicode code points, including astral ones (above 0xFFFF) and the largest, 0x10FFFF.
- elm-core / CharFromCodeTest`Char.fromCode` turns the code points 65, 97 and 48 into `'A'`, `'a'` and `'0'`.
- elm-core / CoreIssue1150CharToCodeLoneSurrogateTest`Char.toCode` returns NaN, typed as `Int`, for a lone surrogate.
Discussions
Discuss this basis entry·Search the discussions on GitHub
Discussions are on GitHub; one about this basis entry has [b:Char.fromCode] 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.