Garry's Mod Wiki

Revision Difference

table.Empty#511812

<function name="Empty" parent="table" type="libraryfunc">⤶ <description>Removes all values from a table.</description>⤶ <realm>Shared and Menu</realm>⤶ <file line="49">lua/includes/extensions/table.lua</file>⤶ <args>⤶ <arg name="tbl" type="table">The table to empty.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Demonstrates the use of this function.</description>⤶ <code>⤶ local Table = {"String Value", "Another value", Var = "Non-integer key"}⤶ table.Empty(Table)⤶ print( table.Count(Table) )⤶ </code>⤶ <output>0</output>⤶ ⤶ </example>