DEV Community

Discussion on: Partial Application of Functions in Elm

Collapse
 
eljayadobe profile image
Eljay-Adobe

One of my buddies pointed out that it would be cleaner using more ES6-isms:

const greeting = (a) => (b) => { return `${a}, ${b}!`; }
Collapse
 
disfated profile image
disfated

Just to clean this up.

const greeting = a => b => `${a}, ${b}!`