Created
March 19, 2013 00:06
-
-
Save pkazmier/5192251 to your computer and use it in GitHub Desktop.
Why not move the local statement inside the anonymous function?
This file contains hidden or 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 seq.keys(t) | |
assert_arg(1,t,'table') | |
local key,value | |
return function() | |
key,value = next(t,key) | |
return key | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment