Last active
October 14, 2017 13:40
-
-
Save Hugoberry/2a81a2df31cbddbaf039f65c1fde5246 to your computer and use it in GitHub Desktop.
Example of a closure function in Power Query
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 | |
ring = () => () =>[Answer="Hello"], | |
firstCall = ring(), //returns a function | |
secondCall = ring()() //returns Answer="Hello" | |
in | |
secondCall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment