WoW:API wipe

From AddOn Studio
Revision as of 04:34, 15 December 2008 by WoWWiki>Egingell (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lua/Libshortcut

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

Template:LUA