“Admittedly, I have yet to find a super compelling use-case for currying in my day-to-day work.” https://medium.com/@kevincennis/currying-in-javascript-c66080543528?source=tw-lo_dnt_a7d8d74a8f03-1437404825968 …
-
-
Replying to @southpolesteve
@southpolesteve I feel like I use it all the time.1 reply 0 retweets 0 likes -
Replying to @twopoint718
@twopoint718 I'd really love to see some examples. I was bummed the OP didn't include any.1 reply 0 retweets 0 likes -
Replying to @southpolesteve
@southpolesteve it's handy for specializing generic fns: sum = reduce (+) 01 reply 0 retweets 0 likes -
Replying to @twopoint718
@southpolesteve now, "sum" is a function expecting a list of integers2 replies 0 retweets 0 likes
Replying to @twopoint718
@twopoint718 eh thats a pretty simple example. I use partial application a lot for specializing functions. Especially in promise chains.
1:26 PM - 20 Jul 2015
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.