WoW:API wipe: Difference between revisions

27 bytes removed ,  25 March 2010
{{luaapi}}
({{luaapi}})
Line 1: Line 1:
{{:Lua/Libshortcut|wipe|table.wipe}}
{{wowapi}}
 
 
'''Wipes''' a table of all contents.
'''Wipes''' a table of all contents.
  table = table.wipe(table)
  table = table.wipe(table)
wipe(table)


== Arguments ==
== Arguments ==
:; table : Table - The table to be cleared.
; table : Table - The table to be cleared.


== Returns ==
== Returns ==
:; table : Table - The empty table.
; table : Table - The empty table.


== Example ==
== Example ==
Line 46: Line 45:
  assert(#copy2==0)    -- the copy is expectedly empty,
  assert(#copy2==0)    -- the copy is expectedly empty,
  assert(#data==0)    -- and so is the original table.
  assert(#data==0)    -- and so is the original table.
{{LUA}}