Last active
April 27, 2018 06:00
-
-
Save Hugoberry/ef07a284eee3a3f365ae6992e4a2709c to your computer and use it in GitHub Desktop.
[Power Query] Closures, partial application and cascading parameters
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
let | |
addTo = (x) => (y) => x + y, | |
//make a closure with scope x=5 | |
addToFive = addTo(5), | |
//becomes addTo(5) => (y) => 5 + y | |
eight = addToFive(3) | |
in //becomes addTo(5) => (3) => 5 + 3 | |
eight |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment