r/coffeescript • u/shesek1 • Jan 13 '13
(->).call.call (->).bind, (->).call, (->).call, (->).bind, (->).call
Can anyone figure out what it does?
I was writing something, and it seemed like I could simplify it a bit... after playing with it, I ended up with this :)
Hint: the expression returns an higher-order function, who has a known name and some of you might have used it.
0
Upvotes
View all comments
Show parent comment
2
u/shesek1 Jan 13 '13
well, it was already an higher-order function composed with other functions, and I thought it could be simplified by reducing it a bit more... obviously that's not what happened, but it was fun to play with :)