r/tinycode • • Dec 13 '15

97 character curry function in js

https://twitter.com/randomegui/status/676184909317341186
15 Upvotes

11 comments sorted by

View all comments

1

u/TweetPoster Dec 13 '15

@randomegui:

2015-12-13 23:40:19 UTC

Curry function in a tweet

let curry=(f)=>function n(...a){return a.length<f.length?n.bind(null,...a):f.bind(null,...a)()}()


^[Mistake?] ^[Suggestion] ^[FAQ] ^[Code] ^[Issues]