Currying and Partial Application: Functional Programming in JavaScript

preview_player
Показать описание
Overview:
I'll be discussing what is the difference between currying and partial application. I'll be using the Ramda JavaScript library for illustration.

Code:

Ramda:

GitHub:

Twitter:

YouTube:
Рекомендации по теме
Комментарии
Автор

I have been trying to understand currying/pa for some time and now it finally really clicked WHY one would use this. When you said: ”you’re taking something generic, and making it more specific.” So it has to do with a move towards a more declarative style code.

Thank you so much!

dawid_dahl
Автор

For the very last example, seems like there's no value in this case as you could just define the function stand-alone and then apply it.

twferrell
visit shbcf.ru