Created
December 9, 2019 08:35
-
-
Save ethe/b489d96e6e92ba5e1726a990d909ce73 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
function f() | |
cnt = 1 | |
function add() | |
cnt += 1 | |
cnt | |
end | |
end | |
a = f() | |
println(a()) | |
println(a()) | |
println(a()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment