Skip to content

Instantly share code, notes, and snippets.

@asim
Created December 4, 2010 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asim/728514 to your computer and use it in GitHub Desktop.
Save asim/728514 to your computer and use it in GitHub Desktop.
just writing some lua
local store = {}
local function add(key, value)
store[key] = value
end
local function get(key)
return store[key]
end
for k,v in pairs({ "foo", "bar", "zool" }) do
add(k, v)
end
for i=1,3 do
print(get(i))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment