You can use maps rather like lists, except that they are much, much quicker to search.
For example, if you have a list of 1000 strings it would require up to 1000 tests to search the list for a particular string. Because of the way that maps store data, it would only take around 10 or so tests to find a particular string in a 1000 object map.
For example, if you have a list of 1000 strings it would require up to 1000 tests to search the list for a particular string. Because of the way that maps store data, it would only take around 10 or so tests to find a particular string in a 1000 object map.