- new_hashtable(T):
Create a hashtable T with 7 bucket slots.
- new_hashtable(T,N):
Create a hashtable T with N bucket slots. N must be a positive integer.
- is_hashtable(T):
T is a hashtable.
- hashtable_get(T,Key,Value):
Get Value that has the key Key from hashtable T. Fail if no such a value exists.
- hashtable_register(T,Key,Value):
Get Value with Key from hashtable T. Put the value under Key into the table if not found.
- hashtable_size(T,Size):
The size of hashtable T, i.e., the number of bucket slots, is Size.
- hash_code(Term,Code):
The hash code of Term is Code.
- hashtable_to_list(T,List):
List is the list of key and value pairs in hashtable T.
- hashtable_keys_to_list(T,List):
List is the list of keys of the elements in hashtable T.
- hashtable_values_to_list(T,List):
List is the list of values of the elements in hashtable T.
Neng-Fa Zhou
2012-01-03