globals
hashtable table = InitHashtable()
endglobals
//####################
//# Hash Tables
//# -----------
//# Think of a hashtable as a 2-dimensional array without any bounds. The table itself is an object to
//# which values can be assigned given 2 coordinates.
//#
//# In the following example, "table" represents the 2-dimensional array, "GetHandleId(t)" represents one
//# of the necessary coordinates, "1" represents the other, and "i" represents the value that I want to store.
//#
function UseHashtables takes nothing returns nothing
local timer t
local integer i
set t = CreateTimer()
set i = 5
call SaveInteger(table, GetHandleId(t), 1, i)
endfunction