Created
January 5, 2016 17:40
-
-
Save avk/1813023f5faa2a9a9584 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from react-dnd | |
// module.exports = DragLayer(collect)(ItemPreview); | |
let function1 = DragLayer(collect); | |
let function2 = function1(ItemPreview); | |
module.exports = function2; | |
function partial_sum(a) { | |
return function (b) { | |
return a+b; | |
}; | |
} | |
let f1 = partial_sum(1); | |
// much time passes... | |
let value = f1(2); // return 1+2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment