When I saw the example I thought this was using R, the statistical computing tool. But it's this tool itself that has an executable called R. I'd suggest renaming it.
Yes, it does. Even if it didn't, it's still confusing I'd say. Why not just call it ramda? Still quite short. Actually, R is the only single letter executable that I can think of. Chances of clashes are ~1/26 :)
R in Linux (OS X is case insensitive, why!) is the command to call R. Usually R is written in an IDE and executed in the IDE or in scripts calling on R.
I find it simple enough to fire up a REPL to inspect JSON. Node.js 4.0+ supports arrow functions, and you can use babel-node if you want even more future JS features.
10 comments
[ 4.8 ms ] story [ 36.7 ms ] threadI think the reason is that this is close to home to Ramda users - the typical name for the Ramda object in Javascript is R.
(for the unaware, Ramda is basically Underscore but more powerful and with a saner, more consistent API)
var my_sort = R.compose(R.first, R.sort, R.prop('id'))