Project

General

Profile

Hfree » History » Version 1

Per Amundsen, 02/11/2014 04:03 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*/hfree [-sw] <name>*
4
5
Deletes a hash table.
6
7
*Switches*
8
9
-s - Displays the result.
10
-w - Indicates name is a wildcard.
11
12
*Parameters*
13
14
<name> - The hashtable to delete.
15
16
*Example*
17
18
<pre>
19
alias example {
20
  ;Create the hash table 'hash'.
21
  /hmake hash
22
23
  ;Print the hashtable size.
24
  echo -a $hget(hash) : $hget(hash).size
25
26
  ;Creates the hash table 'h' with 10 items.
27
  /hmake h 10
28
29
  ;Creates the hash table 'has' with 20 items.
30
  /hmake has 20
31
32
  ;Delete hash table 'hash'.
33
  /hfree -s hash
34
35
  ;Print the hashtable size.
36
  /echo -a $hget(h) : $hget(h).size - $hget(has) : $hget(has).size
37
38
  ;Deletes any hash tables matching h*
39
  /hfree -sw h*
40
}
41
</pre>