|
|
|
|
|
by rikkus
4156 days ago
|
|
I've been looking for some real-world examples of how currying might be useful in javascript. Haven't not used a language which supports currying for any real world project, I'm interested to know how it can help. I found a page [1] which talks about currying in javascript, then says "Are there practical uses for currying in JavaScript? Not really." Can you point me at anything which will help me see why it's useful? [1] http://benalman.com/news/2012/09/partial-application-in-java... |
|
I don't know if this answers your question, since I wrote in about an hour of learning Ramda.js, and there might be an easier way of doing it.
Here's a fiddle:
http://jsfiddle.net/Gk6uu/10/