44 ms·
I mean, => is standard in the language and partial isn't, but that's an accident of history. Your example looks reasonably nice, but the "x" isn't really adding
by lmm 9y ago
I mean, => is standard in the language and partial isn't, but that's an accident of history. Your example looks reasonably nice, but the "x" isn't really adding anything; if we could somehow write it as
y = => {Math.max , 2}
that would be clearer still (setting aside familiarity with the language). Whether "=>" or "partial" is a better name is a separate question.