WoW:API wipe: Difference between revisions
Jump to navigation
Jump to search
m (New page: {{:Lua/Libshortcut|wipe|table.wipe}} Gets a string with all lower case letters instead of upper case. table = table.wipe(table) == Arguments == :; table : Table - The table to be cleare...) |
m (bolded title of article; Cleanup) |
||
Line 1: | Line 1: | ||
{{:Lua/Libshortcut|wipe|table.wipe}} | {{:Lua/Libshortcut|wipe|table.wipe}} | ||
Wipes a table of all contents. | |||
'''Wipes''' a table of all contents. | |||
table = table.wipe(table) | table = table.wipe(table) | ||
Line 16: | Line 17: | ||
tab = table.wipe(tab) | tab = table.wipe(tab) | ||
print(tab.Hello) -- print nil | print(tab.Hello) -- print nil | ||
{{LUA}} | {{LUA}} |
Revision as of 06:23, 15 December 2008
Wipes a table of all contents.
table = table.wipe(table)
Arguments
- table
- Table - The table to be cleared.
Returns
- table
- Table - The empty table.
Example
local tab = {} tab.Hello = "Goodbye" print(tab.Hello) -- print "Goodbye" tab = table.wipe(tab) print(tab.Hello) -- print nil