|
|
|
Table size
Table alist
outputs a new hash table of size size which has initially no members if using the first form, else the members are filled with alist. You can add new members by using setItem or the "t's=x" operator.
Hash tables are very fast for word lookup, much faster than searching in a big list or plist (constant time).
Example:
t=Table 5 setItem "a t 1234 show Item "a t ;1234 t'b=5678 show t'b ;5678 table [a 1234 b 1.2] ;[[a 1234][b 1.2]] ;-) |
|
|
|