by leafo · 14y ago · 0 comments
http://moonscript.org/compiler/#14
Here I create 10 functions closed on the loop value. Then I loop over them and call them all. In JavaScript this would print 10 10 times, but in Lua we get the 1 through 10.
Keep up the good work!