assert(api) print "Sandbox contents:\n" names = {} for k, v in api() do table.insert(names, k) end table.sort(names) for _, name in ipairs(names) do print(name.." ("..type(api(name))..")") end
Prints the global functions available in the sandbox. (Minus table.*, os.* and so on, but you can iterate over those tables normally.) Script is provided as both a test and a reference. Click "test run" to see the actual contents of the sandbox.
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
4 comment(s) hidden. show
Recognizer | Recognition Result | Visualize | Recalc |
---|---|---|---|
#308 | 215 | [visualize] |
Snippet ID: | #144 |
Snippet name: | Contents of Lua Sandbox |
Eternal ID of this version: | #144/1 |
Text MD5: | 6e213b7707e8fd5c169520913497c31e |
Author: | stefan |
Category: | system utilities |
Type: | Lua code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2014-02-01 15:11:13 |
Source code size: | 215 bytes / 14 lines |
Pitched / IR pitched: | Yes / Yes |
Views / Downloads: | 1278 / 230 |
Referenced in: | [show references] |