I'd like to share a revelation that I've had, during my time here. It came to me when I tried to classify your species. I realized that you're not actually mammals. Every mammal on this planet instinctively develops a natural equilibrium with the surrounding environment, but you humans do not. You move to an area, and you multiply, and multiply, until every natural resource is consumed. The only way you can survive is to spread to another area. There is another organism on this planet that follows the same pattern. A virus. Human beings are a disease, a cancer of this planet, you are a plague, and we are the cure. | ||
-- Agent Smith, The Matrix |
Dictionary is an HashTable class extension specialized in items where the key is a string.
Main features of this class are:
Incredibly fast search routine.
Offers APIs to browse all values in the Dictionary like it was a double linked list. See functions like afc_dictionary_first() afc_dictionary_succ() and such.
To inizialize a new instance, simply call afc_dictionary_new() and to destroy it, call the afc_dictionary_delete()
To set new values in the dictionary, call afc_dictionary_set() to delete a specified item, call afc_dictionary_del_item() and to get a key value, call afc_dictionary_get()