Created
April 1, 2016 19:26
-
-
Save maxcampolo/be29f78630db478a5e7890823dd54c16 to your computer and use it in GitHub Desktop.
Call a function from within another function as a closure.
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
public someFunction() { | |
({ self.someStringVariable = "Some value" })() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment