still interested
it's called destructuing it's like doing const map = R.map const add = R.add and map(add(3)) is like .map(x => x +3), but without having to use a arrow function, thanks to currying, you can read more on Rambda's website
Basically the same as: [ 1, 2, 3 ].map(function (x) { return x + 3; }); // returns [ 4, 5, 6 ]
Обсуждают сегодня