Created
May 20, 2016 21:14
-
-
Save Tomen/10748c13351d8e9036209f57301cb045 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
main(List<String> args) { | |
List functions = []; | |
int value = 3; | |
functions.add(()=>print(value)); | |
value = 4; | |
functions.add(()=>print(value)); | |
for(var fn in functions){ | |
fn(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment