- Functions can be anonymous:
double(x) => x + ycan be expressed as
(x, y) => x + y.
Uh, say what?
Responding to the commenter below, while Elm is nice, JS functions can be as pure as you want them to be. While vanilla JS does not enforce purity or immutability, that doesn’t prevent the programmer from writing pure functions and immutable code. Take a look at Ramda, Sanctuary, Fluture, Fantasy Land, Static Land, MobX, Inferno, elmar.js, and more.