Actions
  Hfree » History » Revision 1
    Revision 1/4
      | Next »
    
    Per Amundsen, 02/11/2014 04:03 PM 
    
    
Added in 1.9.0
/hfree [-sw] <name>
Deletes a hash table.
Switches
-s - Displays the result.
-w - Indicates name is a wildcard.
Parameters
<name> - The hashtable to delete.
Example
alias example {
  ;Create the hash table 'hash'.
  /hmake hash
  ;Print the hashtable size.
  echo -a $hget(hash) : $hget(hash).size
  ;Creates the hash table 'h' with 10 items.
  /hmake h 10
  ;Creates the hash table 'has' with 20 items.
  /hmake has 20
  ;Delete hash table 'hash'.
  /hfree -s hash
  ;Print the hashtable size.
  /echo -a $hget(h) : $hget(h).size - $hget(has) : $hget(has).size
  ;Deletes any hash tables matching h*
  /hfree -sw h*
}
Updated by Per Amundsen over 11 years ago · 4 revisions