“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 curious how currying fits in there. I mean sorta a series of partial applications correct? So maybe I'm already doing it2 replies 0 retweets 0 likes -
Replying to @southpolesteve
@southpolesteve so maybe it is nice b/c it makes the "API" of fns uniform1 reply 0 retweets 0 likes
@twopoint718 Ah so that kinda makes sense. I can see some uses for it now to replace successive partial apps. Curry all the things!
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.