Top "Hashtable" questions

A hash table in programming is a collection that uses a hash function to map identifying values (keys) to their associated values.

How to implement the Hashable Protocol in Swift for an Int array (a custom string struct)

I am making a structure that acts like a String, except that it only deals with Unicode UTF-32 scalar values. …

ios arrays string swift hashtable
How do I get the number of keys in a hash table in Lua?

myTable = {} myTable["foo"] = 12 myTable["bar"] = "blah" print(#myTable) -- this prints 0 Do I actually have to iterate through the items …

lua hashtable
Why can't you use null as a key for a Dictionary<bool?, string>?

Apparently, you cannot use a null for a key, even if your key is a nullable type. This code: var …

c# .net dictionary hashtable
c++ - unordered_map complexity

I need to create a lookup function where a (X,Y) pair corresponds to a specific Z value. One major …

c++ hashtable complexity-theory unordered-map
Improving performance of very large dictionary in Python

I find that if I initialize an empty dictionary at the beginning, and then adding elements to the dictionary in …

python performance dictionary hashtable python-internals
How to keep the order of elements in hashtable

I have a hashtable . values() method returns values in some order different from the order in which i am inserted.…

java hashtable linkedhashmap
convert HashTable to Dictionary in C#

how to convert a HashTable to Dictionary in C#? is it possible? for example if I have collection of objects …

c# .net generics dictionary hashtable
Hashtable, HashMap, HashSet , hash table concept in Java collection framework

I am learning Java Collection Framework and got moderated understanding. Now, when I am going a bit further I got …

java hash hashmap hashtable hashset
Difference between Hashtable and Collections.synchronizedMap(HashMap)

As far as I know, java.util.Hashtable synchronizes each and every method in the java.util.Map interface, while …

java collections synchronization hashmap hashtable
When should I use a Hashtable versus a HashMap

This is not a question about the differences between Hashtable and HashMap. I understand that a Hashtable object cannot accept …

java collections hashmap hashtable