Basis entryBasics.identity
Static basis
Dynamic basis
Its text in Elm
identity x = x
Figure 48: The Values of
Basics Written in ElmTests (1)
- elm-core / BasicsIdentityTest`identity` returns its argument unchanged for an Int and a String, and `always 99` returns 99 whatever its second argument.
Discussions
Discuss this basis entry·Search the discussions on GitHub
Discussions are on GitHub; one about this basis entry has [b:Basics.identity] 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.