Похожие чаты

What would that do? Ive never really programmed functional but

still interested

2 ответов

9 просмотров

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 ]

Похожие вопросы

Обсуждают сегодня

Карта сайта