- 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): This is true when T is a hashtable.
- hashtable_get(T,Key,Value):
Get the value Value that is stored under the key Key from hashtable T. Fail if no such key exists.
- hashtable_register(T,Key,Value):
Get the value Value that is stored under the key Key from hashtable T. Store the value in the table under Key, if the key does not exist.
- hashtable_size(T,Size): The number of bucket slots in hashtable T 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
2013-01-25